diff options
-rw-r--r-- | Auth/OpenID/Consumer/Fetchers.php | 10 | ||||
-rw-r--r-- | Auth/OpenID/HTTPFetcher.php | 12 |
2 files changed, 11 insertions, 11 deletions
diff --git a/Auth/OpenID/Consumer/Fetchers.php b/Auth/OpenID/Consumer/Fetchers.php index d460e7d..982b804 100644 --- a/Auth/OpenID/Consumer/Fetchers.php +++ b/Auth/OpenID/Consumer/Fetchers.php @@ -19,16 +19,6 @@ require_once "Auth/OpenID/HTTPFetcher.php"; /** - * Is this an http or https URL? - * - * @access private - */ -function Auth_OpenID_URLHasAllowedScheme($url) -{ - return (bool)preg_match('/^https?:\/\//i', $url); -} - -/** * Detect the presence of Curl and set a flag accordingly. */ define('Auth_OpenID_CURL_PRESENT', function_exists('curl_init')); diff --git a/Auth/OpenID/HTTPFetcher.php b/Auth/OpenID/HTTPFetcher.php index dfcb5ca..7cc957c 100644 --- a/Auth/OpenID/HTTPFetcher.php +++ b/Auth/OpenID/HTTPFetcher.php @@ -46,7 +46,17 @@ class Auth_OpenID_HTTPFetcher { */ function allowedURL($url) { - return Auth_OpenID_URLHasAllowedScheme($url); + return $this->URLHasAllowedScheme($url); + } + + /** + * Is this an http or https URL? + * + * @access private + */ + function URLHasAllowedScheme($url) + { + return (bool)preg_match('/^https?:\/\//i', $url); } /** |