summaryrefslogtreecommitdiffabout
path: root/lib/consumer.cc
Unidiff
Diffstat (limited to 'lib/consumer.cc') (more/less context) (ignore whitespace changes)
-rw-r--r--lib/consumer.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/consumer.cc b/lib/consumer.cc
index df95b64..7f31d52 100644
--- a/lib/consumer.cc
+++ b/lib/consumer.cc
@@ -341,14 +341,13 @@ namespace opkele {
341 html.erase(0,m1.end(0)+1); 341 html.erase(0,m1.end(0)+1);
342 if(!( rre.exec(attrs,m1)>=2 && hre.exec(attrs,m2)>=2 )) 342 if(!( rre.exec(attrs,m1)>=2 && hre.exec(attrs,m2)>=2 ))
343 continue; 343 continue;
344 string rel(attrs,m1.begin(1),m1.length(1)); 344 string rel(attrs,m1.begin(1),m1.length(1));
345 string href(attrs,m2.begin(1),m2.length(1));
346 if(rel=="openid.server") { 345 if(rel=="openid.server") {
347 server = href; 346 server.assign(attrs,m2.begin(1),m2.length(1));
348 if(!delegate.empty()) break; 347 if(!delegate.empty()) break;
349 }else if(rel=="openid.delegate") { 348 }else if(rel=="openid.delegate") {
350 delegate = href; 349 delegate.assign(attrs,m2.begin(1),m2.length(1));
351 if(!server.empty()) break; 350 if(!server.empty()) break;
352 } 351 }
353 } 352 }
354 if(server.empty()) 353 if(server.empty())