summaryrefslogtreecommitdiffstats
path: root/Auth/OpenID.php
diff options
context:
space:
mode:
Diffstat (limited to 'Auth/OpenID.php')
-rw-r--r--Auth/OpenID.php14
1 files changed, 12 insertions, 2 deletions
diff --git a/Auth/OpenID.php b/Auth/OpenID.php
index 9582f50..c74c252 100644
--- a/Auth/OpenID.php
+++ b/Auth/OpenID.php
@@ -381,7 +381,7 @@ class Auth_OpenID {
}
if (!$path) {
- $path = '/';
+ $path = '';
}
$result = $scheme . "://" . $host;
@@ -520,6 +520,16 @@ class Auth_OpenID {
return $b;
}
-}
+ function urldefrag($url)
+ {
+ $parts = explode("#", $url, 2);
+
+ if (count($parts) == 1) {
+ return array($parts[0], "");
+ } else {
+ return $parts;
+ }
+ }
+}
?> \ No newline at end of file