From: Aaron Schulz Date: Mon, 13 Oct 2008 19:08:27 +0000 (+0000) Subject: Use $dbw->addQuotes :) X-Git-Tag: 1.31.0-rc.0~44753 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=0cc2da39daa8d3f41de51e3dbfff0de40b8374d4;p=lhc%2Fweb%2Fwiklou.git Use $dbw->addQuotes :) --- diff --git a/includes/EditPage.php b/includes/EditPage.php index afc330627c..4196a67727 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -1031,8 +1031,10 @@ class EditPage { $dbw = wfGetDB( DB_MASTER ); $res = $dbw->select( 'revision', 'rev_user', - array( 'rev_page' => $this->mArticle->getId(), - "rev_timestamp > '".$dbw->timestamp($edittime)."'" ), + array( + 'rev_page' => $this->mArticle->getId(), + 'rev_timestamp > '.$dbw->addQuotes( $dbw->timestamp($edittime) ) + ), __METHOD__, array( 'ORDER BY' => 'rev_timestamp ASC', 'LIMIT' => 20 ) ); while( $row = $res->fetchObject() ) {