(bug 13949) Special:PrefixIndex/AllPages paging links contain invalid XML
authorAryeh Gregor <simetrical@users.mediawiki.org>
Mon, 5 May 2008 00:14:07 +0000 (00:14 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Mon, 5 May 2008 00:14:07 +0000 (00:14 +0000)
RELEASE-NOTES
includes/SpecialAllpages.php

index 5fd8cf6..cc77377 100644 (file)
@@ -247,7 +247,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 13925) Fix bad HTML on search results list
 * (bug 13934) Fixing the link to GNU General Public License Version 2
 * Show correct accesskey prefix for Firefox 3 beta (Alt-Shift-, not Alt-)
-
+* (bug 13949) Special:PrefixIndex/AllPages paging links contain invalid XML
 
 === API changes in 1.13 ===
 
index 9748a6b..7705761 100644 (file)
@@ -336,16 +336,20 @@ function showChunk( $namespace = NS_MAIN, $from, $including = false ) {
 
                # Do we put a previous link ?
                if( isset( $prevTitle ) &&  $pt = $prevTitle->getText() ) {
-                       $q = 'from=' . $prevTitle->getPartialUrl() . ( $namespace ? '&namespace=' . $namespace : '' );
-                       $prevLink = $sk->makeKnownLinkObj( $self, wfMsgHTML( 'prevpage', $pt ), $q );
+                       $q = 'from=' . $prevTitle->getPartialUrl()
+                               . ( $namespace ? '&namespace=' . $namespace : '' );
+                       $prevLink = $sk->makeKnownLinkObj( $self,
+                               wfMsgHTML( 'prevpage', htmlspecialchars( $pt ) ), $q );
                        $out2 .= ' | ' . $prevLink;
                }
 
                if( $n == $this->maxPerPage && $s = $dbr->fetchObject($res) ) {
                        # $s is the first link of the next chunk
                        $t = Title::MakeTitle($namespace, $s->page_title);
-                       $q = 'from=' . $t->getPartialUrl() . ( $namespace ? '&namespace=' . $namespace : '' );
-                       $nextLink = $sk->makeKnownLinkObj( $self, wfMsgHtml( 'nextpage', $t->getText() ), $q );
+                       $q = 'from=' . $t->getPartialUrl()
+                               . ( $namespace ? '&namespace=' . $namespace : '' );
+                       $nextLink = $sk->makeKnownLinkObj( $self,
+                               wfMsgHtml( 'nextpage', htmlspecialchars( $t->getText() ) ), $q );
                        $out2 .= ' | ' . $nextLink;
                }
                $out2 .= "</td></tr></table><hr />";