htmlspecialchars instead of urlencode
authorGabriel Wicke <gwicke@users.mediawiki.org>
Tue, 18 May 2004 12:50:53 +0000 (12:50 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Tue, 18 May 2004 12:50:53 +0000 (12:50 +0000)
includes/PageHistory.php

index c96ab31..f3b24cd 100644 (file)
@@ -111,7 +111,7 @@ class PageHistory {
                $this->lastdate = $this->lastline = "";
                $s = "\n<p>" . wfMsg( "histlegend" ).'</p>'; 
                $s .="\n<form id=\"pagehistory\" name=\"pagehistory\" action=\"" . $wgTitle->getFullURL("-") . "\" method=\"get\">";
-               $s .= "<input type=\"hidden\" name=\"title\" value=\"".urlencode($wgTitle->getPrefixedDbKey())."\"/>\n";
+               $s .= "<input type=\"hidden\" name=\"title\" value=\"".htmlspecialchars($wgTitle->getPrefixedDbKey())."\"/>\n";
                $s .= "" . "\n<ul>";
                return $s;
        }