r70166 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r70165‎ | r70166 | r70167 >
Date:19:03, 29 July 2010
Author:nikerabbit
Status:ok
Tags:
Comment:
escapeLike to buildLike
Modified paths:
  • /trunk/extensions/CleanChanges/Filters.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CleanChanges/Filters.php
@@ -43,7 +43,7 @@
4444 if ( $trailer === null ) return true;
4545
4646 $dbr = wfGetDB( DB_SLAVE );
47 - $conds[] = 'rc_title LIKE \'%%' . $dbr->escapeLike( $trailer ) . '\'';
 47+ $conds[] = 'rc_title ' . $dbr->buildLike( $dbr->anyString(), $trailer );
4848 $opts->setValue( 'trailer', $trailer );
4949
5050 return true;

Status & tagging log