mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 21:53:35 +00:00
migrateAflFilter: Add missing quotes to raw value in a DB query
Change-Id: I365407eaa02bc57a25db9fa64157c3f3f54398e0
This commit is contained in:
parent
ee93ee7ded
commit
97cf7df3fa
|
@ -100,7 +100,8 @@ class MigrateAflFilter extends LoggedUpdateMaintenance {
|
|||
$dbw->addQuotes( '' )
|
||||
) );
|
||||
$globalSQL = $dbw->buildIntegerCast(
|
||||
'(' . $dbw->buildSubstring( 'afl_filter', 1, strlen( $globalPrefix ) ) . " = $globalPrefix )"
|
||||
'(' . $dbw->buildSubstring( 'afl_filter', 1, strlen( $globalPrefix ) ) . ' = ' .
|
||||
$dbw->addQuotes( $globalPrefix ) . ' )'
|
||||
);
|
||||
|
||||
$dbw->update(
|
||||
|
|
Loading…
Reference in a new issue