add Last-Modified header
[lhc/web/wiklou.git] / includes / PageHistory.php
index 012e9f4..3eeaa9d 100644 (file)
@@ -74,16 +74,11 @@ class PageHistory {
                $atend = ($revs < $limitplus);
                
                $this->mSkin = $wgUser->getSkin();
-               $s = wfMsg( "history_copyright" );
-               if ( $s == "&nbsp;" ) {
-                       $s = "";
-               }
-                       
                $numbar = wfViewPrevNext(
                        $offset, $limit,
                        $this->mTitle->getPrefixedText(),
                        "action=history", $atend );
-               $s .= $numbar;
+               $s = $numbar;
                if($this->linesonpage > 0) {
                        $submitpart1 = '<input class="historysubmit" type="submit" accesskey="'.wfMsg('accesskey-compareselectedversions').
                        '" title="'.wfMsg('tooltip-compareselectedversions').'" value="'.wfMsg('compareselectedversions').'"';
@@ -167,10 +162,10 @@ class PageHistory {
 
                if ( 0 == $u ) {
                        $ul = $this->mSkin->makeKnownLink( $wgLang->specialPage( "Contributions" ),
-                               $ut, "target=" . $ut );
+                               htmlspecialchars( $ut ), "target=" . urlencode( $ut ) );
                } else { 
                        $ul = $this->mSkin->makeLink( $wgLang->getNsText(
-                               Namespace::getUser() ) . ":{$ut}", $ut );
+                               Namespace::getUser() ) . ":{$ut}", htmlspecialchars( $ut ) );
                }
 
                $s = "<li>";