summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--NEWS.xml1
-rw-r--r--lib/params.cc1
2 files changed, 2 insertions, 0 deletions
diff --git a/NEWS.xml b/NEWS.xml
index d8b93f2..210cf13 100644
--- a/NEWS.xml
+++ b/NEWS.xml
@@ -4,6 +4,7 @@
<ni>OpenID simple registration extension implementation</ni>
<ni>OpenID extensions framework</ni>
<ni>Canonicalization bugfix</ni>
+ <ni>Slightly improved interoperability with buggy implementations</ni>
</version>
<version version="0.0" date="July 25th, 2005">
<ni>Initial release</ni>
diff --git a/lib/params.cc b/lib/params.cc
index 03867d5..b181811 100644
--- a/lib/params.cc
+++ b/lib/params.cc
@@ -33,6 +33,7 @@ namespace opkele {
string::size_type nl = kv.find('\n',co+1);
if(nl==string::npos)
throw bad_input(OPKELE_CP_ "malformed input");
+ if(nl>co)
insert(value_type(kv.substr(p,co-p),kv.substr(co+1,nl-co-1)));
p = nl+1;
}