diff --git a/composer.json b/composer.json index f51908e1..684645bf 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "require-dev": { "mediawiki/mediawiki-codesniffer": "34.0.0", - "mediawiki/mediawiki-phan-config": "0.10.5", + "mediawiki/mediawiki-phan-config": "0.10.6", "mediawiki/minus-x": "1.1.0", "php-parallel-lint/php-console-highlighter": "0.5.0", "php-parallel-lint/php-parallel-lint": "1.2.0" diff --git a/src/SpecialReplaceText.php b/src/SpecialReplaceText.php index 9969de5a..4fe8bc70 100644 --- a/src/SpecialReplaceText.php +++ b/src/SpecialReplaceText.php @@ -303,6 +303,7 @@ class SpecialReplaceText extends SpecialPage { if ( $title == null ) { continue; } + // @phan-suppress-next-line SecurityCheck-ReDoS target could be a regex from user $context = $this->extractContext( $row->old_text, $this->target, $this->use_regex ); $titles_for_edit[] = [ $title, $context ]; }