From 0cc2da39daa8d3f41de51e3dbfff0de40b8374d4 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 13 Oct 2008 19:08:27 +0000 Subject: [PATCH] Use $dbw->addQuotes :) --- includes/EditPage.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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() ) { -- 2.20.1