File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -589,6 +589,7 @@ function toPostArgs()
589
589
// Add namespace definitions to the output
590
590
foreach ($ this ->namespaces ->iteritems () as $ pair ) {
591
591
list ($ ns_uri , $ alias ) = $ pair ;
592
+
592
593
if ($ alias == Auth_OpenID_NULL_NAMESPACE) {
593
594
if ($ ns_uri != Auth_OpenID_OPENID1_NS) {
594
595
$ args ['openid.ns ' ] = $ ns_uri ;
@@ -602,8 +603,10 @@ function toPostArgs()
602
603
// could look in the signed list.
603
604
}
604
605
} else {
605
- $ ns_key = 'openid.ns. ' . $ alias ;
606
- $ args [$ ns_key ] = $ ns_uri ;
606
+ if ($ this ->getOpenIDNamespace () != Auth_OpenID_OPENID1_NS) {
607
+ $ ns_key = 'openid.ns. ' . $ alias ;
608
+ $ args [$ ns_key ] = $ ns_uri ;
609
+ }
607
610
}
608
611
}
609
612
Original file line number Diff line number Diff line change @@ -114,7 +114,6 @@ function test_addExtensionArg()
114
114
// namespaces. Really it doesn't care that it has alias "0",
115
115
// but that is tested anyway
116
116
$ post_args = $ msg ->toPostArgs ();
117
- $ this ->assertEquals ('bag: ' , $ post_args ['openid.ns.ext0 ' ]);
118
117
$ this ->assertEquals ('brown ' , $ post_args ['openid.ext0.color ' ]);
119
118
$ this ->assertEquals ('paper ' , $ post_args ['openid.ext0.material ' ]);
120
119
}
You can’t perform that action at this time.
0 commit comments