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

Commit a3d0943

Browse files
committed
Further simplify match code
1 parent 08d0c5f commit a3d0943

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

Auth/OpenID/Parse.php

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -221,18 +221,7 @@ function match($regexp, $text, &$match)
221221
if (preg_match($regexp, $text, $match)) {
222222
return true;
223223
}
224-
225-
if ( !is_callable('mb_ereg_search_init')) {
226-
return false;
227-
}
228-
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;
224+
return false;
236225
}
237226

238227
/**

0 commit comments

Comments
 (0)