mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-09-24 02:38:16 +00:00
Merge "SECURITY: Avoid database for MediaWiki:Abusefilter-blocker fallback"
This commit is contained in:
commit
db15b13396
|
@ -51,7 +51,11 @@ class FilterUser {
|
|||
);
|
||||
// Use the default name to avoid breaking other stuff. This should have no harm,
|
||||
// aside from blocks temporarily attributed to another user.
|
||||
$defaultName = $this->messageLocalizer->msg( 'abusefilter-blocker' )->inLanguage( 'en' )->text();
|
||||
// Don't use the database in case the English onwiki message is broken, T284364
|
||||
$defaultName = $this->messageLocalizer->msg( 'abusefilter-blocker' )
|
||||
->inLanguage( 'en' )
|
||||
->useDatabase( false )
|
||||
->text();
|
||||
$user = User::newSystemUser( $defaultName, [ 'steal' => true ] );
|
||||
}
|
||||
'@phan-var User $user';
|
||||
|
|
Loading…
Reference in a new issue