summaryrefslogtreecommitdiffstats
path: root/Auth/OpenID
diff options
context:
space:
mode:
authortailor <cygnus@janrain.com>2007-04-16 23:05:28 +0000
committertailor <cygnus@janrain.com>2007-04-16 23:05:28 +0000
commitd699e6340e49bb29f45748853d3a869476c07417 (patch)
tree4c361f8f8eca473f4e1add234cfb29576cae08b4 /Auth/OpenID
parenta3d2f2084e458233f25081777b4e0ce43052f33e (diff)
downloadphp-openid-d699e6340e49bb29f45748853d3a869476c07417.zip
php-openid-d699e6340e49bb29f45748853d3a869476c07417.tar.gz
php-openid-d699e6340e49bb29f45748853d3a869476c07417.tar.bz2
[project @ Do not send openid.ns values in OpenID 1 messages]
Diffstat (limited to 'Auth/OpenID')
-rw-r--r--Auth/OpenID/Message.php7
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;
+ }
}
}