From: Sandro Santilli Date: Sat, 8 Apr 2017 07:13:59 +0000 (+0200) Subject: Fix OpenID discovery in pages using uppercase tag X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=aac6a21c4e53ed5952d195a6d39e6dbd0537637f;p=quix0rs-gnu-social.git Fix OpenID discovery in pages using uppercase tag Closes #60 Equivalent change was proposed upstream: https://github.com/openid/php-openid/pull/134 --- diff --git a/extlib/Auth/OpenID/Parse.php b/extlib/Auth/OpenID/Parse.php index 0461bdcff7..af0b86af7e 100644 --- a/extlib/Auth/OpenID/Parse.php +++ b/extlib/Auth/OpenID/Parse.php @@ -218,21 +218,11 @@ class Auth_OpenID_Parse { function match($regexp, $text, &$match) { - if (!is_callable('mb_ereg_search_init')) { - if (!preg_match($regexp, $text, $match)) { - return false; - } - $match = $match[0]; - return true; + if (preg_match($regexp, $text, $match)) { + return true; } - $regexp = substr($regexp, 1, strlen($regexp) - 2 - strlen($this->_re_flags)); - mb_ereg_search_init($text); - if (!mb_ereg_search($regexp)) { - return false; - } - $match = mb_ereg_search_getregs(); - return true; + return false; } /**