Skip to content

Commit a24beca

Browse files
committed
Fix OpenID discovery in pages using uppercase <HEAD> tag
Closes #60 Equivalent change was proposed upstream: openid/php-openid#134
1 parent c5b3663 commit a24beca

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

extlib/Auth/OpenID/Parse.php

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -218,21 +218,11 @@ function removeQuotes($str)
218218

219219
function match($regexp, $text, &$match)
220220
{
221-
if (!is_callable('mb_ereg_search_init')) {
222-
if (!preg_match($regexp, $text, $match)) {
223-
return false;
224-
}
225-
$match = $match[0];
226-
return true;
221+
if (preg_match($regexp, $text, $match)) {
222+
return true;
227223
}
228224

229-
$regexp = substr($regexp, 1, strlen($regexp) - 2 - strlen($this->_re_flags));
230-
mb_ereg_search_init($text);
231-
if (!mb_ereg_search($regexp)) {
232-
return false;
233-
}
234-
$match = mb_ereg_search_getregs();
235-
return true;
225+
return false;
236226
}
237227

238228
/**

0 commit comments

Comments
 (0)