diff options
Diffstat (limited to 'Auth')
-rw-r--r-- | Auth/OpenID.php | 14 |
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 |