mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Nuke
synced 2024-11-27 09:40:43 +00:00
Merge "Revert "Use $dbr->buildLike() instead of manual LIKE""
This commit is contained in:
commit
913415a456
|
@ -273,7 +273,9 @@ class SpecialNuke extends SpecialPage {
|
|||
|
||||
$pattern = $this->getRequest()->getText( 'pattern' );
|
||||
if ( !is_null( $pattern ) && trim( $pattern ) !== '' ) {
|
||||
$where[] = 'rc_title ' . $dbr->buildLike( $pattern );
|
||||
// $pattern is a SQL pattern supporting wildcards, so buildLike
|
||||
// will not work.
|
||||
$where[] = 'rc_title LIKE ' . $dbr->addQuotes( $pattern );
|
||||
}
|
||||
$group = implode( ', ', $what );
|
||||
|
||||
|
|
Loading…
Reference in a new issue