Merge "Revert "Use $dbr->buildLike() instead of manual LIKE""

This commit is contained in:
jenkins-bot 2017-04-20 21:07:02 +00:00 committed by Gerrit Code Review
commit 913415a456

View file

@ -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 );