From: Aryeh Gregor Date: Mon, 5 May 2008 00:14:07 +0000 (+0000) Subject: (bug 13949) Special:PrefixIndex/AllPages paging links contain invalid XML X-Git-Tag: 1.31.0-rc.0~47909 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/?a=commitdiff_plain;h=ce3bf5d83e54c70c3448a7274ed224545e7506f4;p=lhc%2Fweb%2Fwiklou.git (bug 13949) Special:PrefixIndex/AllPages paging links contain invalid XML --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 5fd8cf665d..cc773771e6 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 === diff --git a/includes/SpecialAllpages.php b/includes/SpecialAllpages.php index 9748a6bce1..77057618b3 100644 --- a/includes/SpecialAllpages.php +++ b/includes/SpecialAllpages.php @@ -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 .= "
";