-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 { html.erase(0,m1.end(0)+1); if(!( rre.exec(attrs,m1)>=2 && hre.exec(attrs,m2)>=2 )) continue; string rel(attrs,m1.begin(1),m1.length(1)); - string href(attrs,m2.begin(1),m2.length(1)); if(rel=="openid.server") { - server = href; + server.assign(attrs,m2.begin(1),m2.length(1)); if(!delegate.empty()) break; }else if(rel=="openid.delegate") { - delegate = href; + delegate.assign(attrs,m2.begin(1),m2.length(1)); if(!server.empty()) break; } } if(server.empty()) |