summaryrefslogtreecommitdiffstats
path: root/Auth/OpenID.php
diff options
context:
space:
mode:
Diffstat (limited to 'Auth/OpenID.php')
-rw-r--r--Auth/OpenID.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/Auth/OpenID.php b/Auth/OpenID.php
index 8ed5dd7..dc28c5d 100644
--- a/Auth/OpenID.php
+++ b/Auth/OpenID.php
@@ -99,6 +99,26 @@ class Auth_OpenID {
}
return $fetcher;
}
+
+ /**
+ * Rename query arguments back to 'openid.' from 'openid_'
+ *
+ * @access private
+ * @param array $args An associative array of URL query arguments
+ */
+ function fixArgs($args)
+ {
+ foreach (array_keys($args) as $key) {
+ $fixed = preg_replace('/^openid_/', 'openid.', $key);
+ if ($fixed != $key) {
+ $val = $args[$key];
+ unset($args[$key]);
+ $args[$fixed] = $val;
+ }
+ }
+
+ return $args;
+ }
}
?> \ No newline at end of file