From: umherirrender Date: Sun, 13 Jan 2013 19:35:28 +0000 (+0100) Subject: Fix hardcode database quotes in Special:Watchlist X-Git-Tag: 1.31.0-rc.0~20991 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=3b33154284762e615dfaf797ae6979f0c656ac89;p=lhc%2Fweb%2Fwiklou.git Fix hardcode database quotes in Special:Watchlist Change-Id: I0d53a24b35a855a541fb73d8bbfcace9de74e549 --- diff --git a/includes/specials/SpecialWatchlist.php b/includes/specials/SpecialWatchlist.php index 3cfa31f167..afa39861e4 100644 --- a/includes/specials/SpecialWatchlist.php +++ b/includes/specials/SpecialWatchlist.php @@ -196,7 +196,7 @@ class SpecialWatchlist extends SpecialPage { $conds = array(); if( $values['days'] > 0 ) { - $conds[] = "rc_timestamp > '".$dbr->timestamp( time() - intval( $values['days'] * 86400 ) )."'"; + $conds[] = 'rc_timestamp > ' . $dbr->addQuotes( $dbr->timestamp( time() - intval( $values['days'] * 86400 ) ) ); } # If the watchlist is relatively short, it's simplest to zip