summaryrefslogtreecommitdiffabout
authorMichael Krelin <hacker@klever.net>2008-11-23 00:43:59 (UTC)
committer Michael Krelin <hacker@klever.net>2009-04-11 15:08:59 (UTC)
commit381bfb49bfbfc569e6b5aa8e58a933de4397b053 (patch) (unidiff)
tree19f5d884250e83f43094d8bf64b52704417ff265
parenta5804c83e1ff21fcbf3acb8b1ff952b8dc94adc1 (diff)
downloadlibopkele-381bfb49bfbfc569e6b5aa8e58a933de4397b053.zip
libopkele-381bfb49bfbfc569e6b5aa8e58a933de4397b053.tar.gz
libopkele-381bfb49bfbfc569e6b5aa8e58a933de4397b053.tar.bz2
workaround for livejournal.com breaking specs
just don't treat those who supply empty op_endpoint as OpenID 2.0 providers Signed-off-by: Michael Krelin <hacker@klever.net>
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--lib/basic_rp.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/basic_rp.cc b/lib/basic_rp.cc
index 3cad71c..8125aa7 100644
--- a/lib/basic_rp.cc
+++ b/lib/basic_rp.cc
@@ -220,3 +220,3 @@ namespace opkele {
220 bool o2 = om.has_field("ns") 220 bool o2 = om.has_field("ns")
221 && om.get_field("ns")==OIURI_OPENID20; 221 && om.get_field("ns")==OIURI_OPENID20 && !om.get_field("op_endpoint").empty();
222 if( (!o2) && om.has_field("user_setup_url")) 222 if( (!o2) && om.has_field("user_setup_url"))