Author: aik.bold
Description:
When listing pages using DPL query and page_title in database is named like "test_&_test2" amp; is lost in name and link to not existing page is build.
Fix:
if ($bEscapeLinks && ($pageNamespace==14 || $pageNamespace==6) ) {
// links to categories or images need an additional ":" $articleLink = '[[:'.htmlspecialchars($title->getPrefixedText()).'|'.htmlspecialchars( $wgContLang->convert( $sTitleText ) ).']]'; } else { $articleLink = '[['.htmlspecialchars($title->getPrefixedText()).'|'.htmlspecialchars( $wgContLang->convert( $sTitleText ) ).']]'; } $dplArticle->mLink = $articleLink;
This one of possible fixes: add htmlspecialchars call to name and url when building resulting wikitext.
Version: unspecified
Severity: minor
Platform: PC