mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-24 06:03:49 +00:00
Update StringUtils::isValidRegex() call to isValidPCRERegex()
This follows-up 8587576655
(AF) and efbfa0a727 (core). The
method was recently introduced within the 1.34 cycle but
renamed following late CR feedback.
Change-Id: I9986deb080791c6266c6c60cc91022266ad9b5e5
This commit is contained in:
parent
952dfa0bb4
commit
a532874ee2
|
@ -88,7 +88,7 @@ class AbuseFilterViewList extends AbuseFilterView {
|
|||
|
||||
if ( $querypattern !== '' ) {
|
||||
if ( $searchmode !== 'LIKE' ) {
|
||||
if ( !StringUtils::isValidRegex( "/$querypattern/" ) ) {
|
||||
if ( !StringUtils::isValidPCRERegex( "/$querypattern/" ) ) {
|
||||
$out->addHTML(
|
||||
Xml::tags(
|
||||
'p',
|
||||
|
|
Loading…
Reference in a new issue