mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TitleBlacklist
synced 2024-11-27 15:30:48 +00:00
build: Updating mediawiki/mediawiki-phan-config to 0.10.6
Change-Id: I19c53a7b3d3ea12bb098f754dc68ce23cc5c8529
This commit is contained in:
parent
0f3699c40f
commit
6218ba8396
|
@ -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"
|
||||
|
|
|
@ -338,6 +338,7 @@ class TitleBlacklist {
|
|||
foreach ( $blacklist as $e ) {
|
||||
Wikimedia\suppressWarnings();
|
||||
$regex = $e->getRegex();
|
||||
// @phan-suppress-next-line SecurityCheck-ReDoS
|
||||
if ( preg_match( "/{$regex}/u", '' ) === false ) {
|
||||
$badEntries[] = $e->getRaw();
|
||||
}
|
||||
|
|
|
@ -130,6 +130,7 @@ class TitleBlacklistEntry {
|
|||
}
|
||||
|
||||
Wikimedia\suppressWarnings();
|
||||
// @phan-suppress-next-line SecurityCheck-ReDoS
|
||||
$match = preg_match(
|
||||
"/^(?:{$this->mRegex})$/us" . ( isset( $this->mParams['casesensitive'] ) ? '' : 'i' ),
|
||||
$title
|
||||
|
@ -233,6 +234,7 @@ class TitleBlacklistEntry {
|
|||
}
|
||||
// Return result
|
||||
if ( $regex ) {
|
||||
// @phan-suppress-next-line SecurityCheck-ReDoS
|
||||
return new TitleBlacklistEntry( $regex, $options, $raw, $source );
|
||||
} else {
|
||||
return null;
|
||||
|
|
Loading…
Reference in a new issue