diff options
Diffstat (limited to 'Auth/OpenID/Parse.php')
-rw-r--r-- | Auth/OpenID/Parse.php | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/Auth/OpenID/Parse.php b/Auth/OpenID/Parse.php index 4e6c7dd..455723d 100644 --- a/Auth/OpenID/Parse.php +++ b/Auth/OpenID/Parse.php @@ -218,17 +218,17 @@ class Auth_OpenID_Parse { function match($regexp, $text, &$match) { - if (!is_callable('mb_ereg_search_init')) { - return preg_match($regexp, $text, $match); - } else { - $regexp = substr($regexp, 1, strlen($regexp) - 2 - strlen($this->_re_flags)); - mb_ereg_search_init($text, $regexp); - if (!mb_ereg_search()) { - return false; - } - list($match) = mb_ereg_search_getregs(); - return true; - } + if (!is_callable('mb_ereg_search_init')) { + return preg_match($regexp, $text, $match); + } + + $regexp = substr($regexp, 1, strlen($regexp) - 2 - strlen($this->_re_flags)); + mb_ereg_search_init($text); + if (!mb_ereg_search($regexp)) { + return false; + } + list($match) = mb_ereg_search_getregs(); + return true; } /** @@ -269,8 +269,8 @@ class Auth_OpenID_Parse { // Try to find the <HEAD> tag. $head_re = $this->headFind(); - $html_match = ''; - if (!$this->match($html_re, $stripped, $html_match)) { + $head_match = ''; + if (!$this->match($head_re, $stripped, $head_match)) { ini_set( 'pcre.backtrack_limit', $old_btlimit ); return array(); } |