Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit 8c3a0ae

Browse files
strkmarcoceppi
authored andcommitted
#134: Fix case-sensitivity in discovery (fixes #133)
* Fix case-sensitivity in discovery
1 parent b610dfd commit 8c3a0ae

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

Auth/OpenID/Parse.php

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -222,21 +222,10 @@ function removeQuotes($str)
222222

223223
function match($regexp, $text, &$match)
224224
{
225-
if (!is_callable('mb_ereg_search_init')) {
226-
if (!preg_match($regexp, $text, $match)) {
227-
return false;
228-
}
229-
$match = $match[0];
230-
return true;
225+
if (preg_match($regexp, $text, $match)) {
226+
return true;
231227
}
232-
233-
$regexp = substr($regexp, 1, strlen($regexp) - 2 - strlen($this->_re_flags));
234-
mb_ereg_search_init($text);
235-
if (!mb_ereg_search($regexp)) {
236-
return false;
237-
}
238-
$match = mb_ereg_search_getregs();
239-
return true;
228+
return false;
240229
}
241230

242231
/**

0 commit comments

Comments
 (0)