patch 4 Auth/OpenID/Consumer.php
Niels Berkers
niels at quotar.com
Tue Apr 10 14:16:07 PDT 2007
Hi All,
querying the openid server gives a problem in Auth/OpenID/Consumer.php
A second call on function addExtensionArg will over write the previous
set argument. So the URL will only contain a query for the last call
(per $key * $namespace that is)
http://openid.net/specs/openid-simple-registration-extension-1_1-01.html
patch in Auth/OpenID/Consumer.php from line 971-978
-original-----------------------------
function addExtensionArg($namespace, $key, $value)
{
$arg_name = implode('.', array('openid', $namespace, $key));
$this->extra_args[$arg_name] = $value;
}
--------------------------------------
-patch--------------------------------
function addExtensionArg($namespace, $key, $value)
{
$arg_name = implode('.', array('openid', $namespace, $key));
if (count($this->extra_args[$arg_name]) > 0){
$this->extra_args[$arg_name] .= ",".$value;
} else {
$this->extra_args[$arg_name] = $value;
}
}
-----------------------------------
br,
Niels Berkers
Quotar Internet & new media
http://openid.quotar.com
More information about the Dev
mailing list