* (bug 2459) Correct escaping in Special:Log prev/next links
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 19 Jun 2005 20:25:32 +0000 (20:25 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 19 Jun 2005 20:25:32 +0000 (20:25 +0000)
RELEASE-NOTES
includes/SpecialLog.php

index 0ac6e60..f8dbd46 100644 (file)
@@ -306,7 +306,7 @@ Various bugfixes, small features, and a few experimental things:
 * 'developer' group deprecated by default
 * Special:Upload now uses 'upload' permission instead of hardcoding login check
 * Add 'importupload' permission to disable direct uploads to Special:Import
-
+* (bug 2459) Correct escaping in Special:Log prev/next links
 
 === Caveats ===
 
index bfaee33..244aa19 100644 (file)
@@ -396,9 +396,9 @@ class LogViewer {
        function showPrevNext( &$out ) {
                global $wgContLang,$wgRequest;
                $pieces = array();
-               $pieces[] = 'type=' . htmlspecialchars( $this->reader->queryType() );
-               $pieces[] = 'user=' . htmlspecialchars( $this->reader->queryUser() );
-               $pieces[] = 'page=' . htmlspecialchars( $this->reader->queryTitle() );
+               $pieces[] = 'type=' . urlencode( $this->reader->queryType() );
+               $pieces[] = 'user=' . urlencode( $this->reader->queryUser() );
+               $pieces[] = 'page=' . urlencode( $this->reader->queryTitle() );
                $bits = implode( '&', $pieces );
                list( $limit, $offset ) = $wgRequest->getLimitOffset();