summaryrefslogtreecommitdiffstats
path: root/Auth
diff options
context:
space:
mode:
authortailor <cygnus@janrain.com>2006-05-15 19:17:07 +0000
committertailor <cygnus@janrain.com>2006-05-15 19:17:07 +0000
commit44fb769d0c92adddbd11d1ffe205a179a8ecd0ba (patch)
tree20845d88fa50992230660d7c521e425414e5f885 /Auth
parent6b6029c88cfd29a874dba6be19b123c440265e16 (diff)
downloadphp-openid-44fb769d0c92adddbd11d1ffe205a179a8ecd0ba.zip
php-openid-44fb769d0c92adddbd11d1ffe205a179a8ecd0ba.tar.gz
php-openid-44fb769d0c92adddbd11d1ffe205a179a8ecd0ba.tar.bz2
[project @ Added extra ^openid check to fixArgs]
Diffstat (limited to 'Auth')
-rw-r--r--Auth/OpenID.php18
1 files changed, 10 insertions, 8 deletions
diff --git a/Auth/OpenID.php b/Auth/OpenID.php
index b52d41b..534fc9d 100644
--- a/Auth/OpenID.php
+++ b/Auth/OpenID.php
@@ -137,16 +137,18 @@ class Auth_OpenID {
global $_Auth_OpenID_namespaces;
foreach (array_keys($args) as $key) {
$fixed = $key;
- foreach ($_Auth_OpenID_namespaces as $ns) {
- if (preg_match('/'.$ns.'_/', $key)) {
- $fixed = preg_replace('/'.$ns.'_/', $ns.'.', $fixed);
+ if (preg_match('/^openid/', $key)) {
+ foreach ($_Auth_OpenID_namespaces as $ns) {
+ if (preg_match('/'.$ns.'_/', $key)) {
+ $fixed = preg_replace('/'.$ns.'_/', $ns.'.', $fixed);
+ }
}
- }
- if ($fixed != $key) {
- $val = $args[$key];
- unset($args[$key]);
- $args[$fixed] = $val;
+ if ($fixed != $key) {
+ $val = $args[$key];
+ unset($args[$key]);
+ $args[$fixed] = $val;
+ }
}
}