r42044 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r42043‎ | r42044 | r42045 >
Date:19:08, 13 October 2008
Author:aaron
Status:old
Tags:
Comment:
Use $dbw->addQuotes :)
Modified paths:
  • /trunk/phase3/includes/EditPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/EditPage.php
@@ -1031,8 +1031,10 @@
10321032 $dbw = wfGetDB( DB_MASTER );
10331033 $res = $dbw->select( 'revision',
10341034 'rev_user',
1035 - array( 'rev_page' => $this->mArticle->getId(),
1036 - "rev_timestamp > '".$dbw->timestamp($edittime)."'" ),
 1035+ array(
 1036+ 'rev_page' => $this->mArticle->getId(),
 1037+ 'rev_timestamp > '.$dbw->addQuotes( $dbw->timestamp($edittime) )
 1038+ ),
10371039 __METHOD__,
10381040 array( 'ORDER BY' => 'rev_timestamp ASC', 'LIMIT' => 20 ) );
10391041 while( $row = $res->fetchObject() ) {

Status & tagging log