From: Tim Starling Date: Tue, 4 Nov 2008 00:43:39 +0000 (+0000) Subject: Escaping once is enough. X-Git-Tag: 1.31.0-rc.0~44436 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=25a4c93ad24845586506fe2a35c379c2dc7b605c;p=lhc%2Fweb%2Fwiklou.git Escaping once is enough. --- diff --git a/includes/LogEventsList.php b/includes/LogEventsList.php index 0de92b6b98..264096a3fd 100644 --- a/includes/LogEventsList.php +++ b/includes/LogEventsList.php @@ -510,7 +510,7 @@ class LogPager extends ReverseChronologicalPager { $hide = $wgRequest->getInt( "hide_{$type}_log", $default ); $filters[$type] = $hide; if( $hide ) - $this->mConds[] = 'log_type != '.$this->mDb->addQuotes( $this->mDb->strencode($type) ); + $this->mConds[] = 'log_type != ' . $this->mDb->addQuotes( $type ); } } return $filters;