X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fspecials%2FSpecialFewestrevisions.php;h=c47d87be2e380f389b9c8b2c99e9db58ccaced9f;hp=4a57c95eb36a834240d268253155dc2701317007;hb=04d1aa3033f40a38d721f7f0e88b5bac440d2869;hpb=bc6457b28d70641d366a554d8a82385b53a46fc9 diff --git a/includes/specials/SpecialFewestrevisions.php b/includes/specials/SpecialFewestrevisions.php index 4a57c95eb3..c47d87be2e 100644 --- a/includes/specials/SpecialFewestrevisions.php +++ b/includes/specials/SpecialFewestrevisions.php @@ -52,7 +52,8 @@ class FewestrevisionsPage extends QueryPage { 'redirect' => 'page_is_redirect' ], 'conds' => [ - 'page_namespace' => MWNamespace::getContentNamespaces(), + 'page_namespace' => MediaWikiServices::getInstance()->getNamespaceInfo()-> + getContentNamespaces(), 'page_id = rev_page' ], 'options' => [ 'GROUP BY' => [ 'page_namespace', 'page_title', 'page_is_redirect' ] @@ -84,8 +85,8 @@ class FewestrevisionsPage extends QueryPage { } $linkRenderer = $this->getLinkRenderer(); $text = MediaWikiServices::getInstance()->getContentLanguage()-> - convert( $nt->getPrefixedText() ); - $plink = $linkRenderer->makeLink( $nt, $text ); + convert( htmlspecialchars( $nt->getPrefixedText() ) ); + $plink = $linkRenderer->makeLink( $nt, new HtmlArmor( $text ) ); $nl = $this->msg( 'nrevisions' )->numParams( $result->value )->text(); $redirect = isset( $result->redirect ) && $result->redirect ?