From 96bd35e9640da9a549707403578c474415d40f58 Mon Sep 17 00:00:00 2001 From: Alex Monk Date: Fri, 17 Jul 2015 18:25:24 -0500 Subject: [PATCH] Check for any content of MediaWiki namespace titles before passing it through ContentHandler Follows up I302d7915 Change-Id: I484bc45681d2a916aaa1e174e9235515aea62930 --- includes/page/Article.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/page/Article.php b/includes/page/Article.php index f213f6a2cf..e58ffc8514 100644 --- a/includes/page/Article.php +++ b/includes/page/Article.php @@ -1256,7 +1256,7 @@ class Article implements Page { # Show error message $oldid = $this->getOldID(); - if ( !$oldid && $title->getNamespace() === NS_MEDIAWIKI ) { + if ( !$oldid && $title->getNamespace() === NS_MEDIAWIKI && $title->hasSourceText() ) { $outputPage->addParserOutput( $this->getContentObject()->getParserOutput( $title ) ); } else { if ( $oldid ) { -- 2.20.1