git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit e3cafc01 authored by mmn's avatar mmn

Merge branch 'case-sensitive-openid' into 'master'

Fix OpenID discovery in pages using uppercase <HEAD> tag

Closes #60

See merge request !140
parents 3b363d62 aac6a21c
...@@ -218,21 +218,11 @@ class Auth_OpenID_Parse { ...@@ -218,21 +218,11 @@ class Auth_OpenID_Parse {
function match($regexp, $text, &$match) function match($regexp, $text, &$match)
{ {
if (!is_callable('mb_ereg_search_init')) { if (preg_match($regexp, $text, $match)) {
if (!preg_match($regexp, $text, $match)) { return true;
return false;
}
$match = $match[0];
return true;
} }
$regexp = substr($regexp, 1, strlen($regexp) - 2 - strlen($this->_re_flags)); return false;
mb_ereg_search_init($text);
if (!mb_ereg_search($regexp)) {
return false;
}
$match = mb_ereg_search_getregs();
return true;
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment