diff options
Diffstat (limited to 'Auth')
-rw-r--r-- | Auth/OpenID/Message.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Auth/OpenID/Message.php b/Auth/OpenID/Message.php index 8ea429e..95d1103 100644 --- a/Auth/OpenID/Message.php +++ b/Auth/OpenID/Message.php @@ -589,6 +589,7 @@ class Auth_OpenID_Message { // Add namespace definitions to the output foreach ($this->namespaces->iteritems() as $pair) { list($ns_uri, $alias) = $pair; + if ($alias == Auth_OpenID_NULL_NAMESPACE) { if ($ns_uri != Auth_OpenID_OPENID1_NS) { $args['openid.ns'] = $ns_uri; @@ -602,8 +603,10 @@ class Auth_OpenID_Message { // could look in the signed list. } } else { - $ns_key = 'openid.ns.' . $alias; - $args[$ns_key] = $ns_uri; + if ($this->getOpenIDNamespace() != Auth_OpenID_OPENID1_NS) { + $ns_key = 'openid.ns.' . $alias; + $args[$ns_key] = $ns_uri; + } } } |