r81216 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r81215‎ | r81216 | r81217 >
Date:22:12, 30 January 2011
Author:reedy
Status:deferred (Comments)
Tags:
Comment:
Remove usage of $dbr->escapeLike (per bug 270042)
Modified paths:
  • /trunk/tools/incubator-transfer/incubator-transfer.php (modified) (history)

Diff [purge]

Index: trunk/tools/incubator-transfer/incubator-transfer.php
@@ -25,7 +25,7 @@
2626 # Get page list
2727 $dbr =& wfGetDB( DB_SLAVE );
2828 $res = $dbr->select( 'page', array( 'page_namespace', 'page_title' ),
29 - array( "page_title LIKE '" . $dbr->escapeLike( $prefix ) . "/%'" ),
 29+ array( "page_title " . $dbr->buildLike( $prefix, $dbr->anyString() ) ),
3030 __METHOD__ );
3131
3232 # Start the page list with a main page

Follow-up revisions

RevisionCommit summaryAuthorDate
r81221Followup r81216, fix missing . '/'reedy22:35, 30 January 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r81215Remove usage of $dbw->escapeLike in RenameDbPrefix (per bug 270042)reedy22:12, 30 January 2011

Comments

#Comment by MZMcBride (talk | contribs)   22:14, 30 January 2011

Bug 27042, too.

Status & tagging log