author | Michael Krelin <hacker@klever.net> | 2007-09-22 21:02:48 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2007-09-22 21:02:48 (UTC) |
commit | 17dd1771421d1098a2ba8dc16ae381912cae64ef (patch) (unidiff) | |
tree | e4a3c21ab8dad60ef746b6650e63ddb9d608742c | |
parent | 5cb71518360f865cd4448a083b5d481e6f356a3e (diff) | |
download | libopkele-17dd1771421d1098a2ba8dc16ae381912cae64ef.zip libopkele-17dd1771421d1098a2ba8dc16ae381912cae64ef.tar.gz libopkele-17dd1771421d1098a2ba8dc16ae381912cae64ef.tar.bz2 |
save a couple of ticks
Signed-off-by: Michael Krelin <hacker@klever.net>
-rw-r--r-- | lib/consumer.cc | 5 |
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()) |