Escaping once is enough.
authorTim Starling <tstarling@users.mediawiki.org>
Tue, 4 Nov 2008 00:43:39 +0000 (00:43 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Tue, 4 Nov 2008 00:43:39 +0000 (00:43 +0000)
includes/LogEventsList.php

index 0de92b6..264096a 100644 (file)
@@ -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;