Jackmcbarn has uploaded a new change for review. https://gerrit.wikimedia.org/r/162597
Change subject: Don't check interwiki redirect targets against the blacklist ...................................................................... Don't check interwiki redirect targets against the blacklist Bug: 54769 Change-Id: I445fd2052a54233dd6311e0a60e8aa6f896f68f8 --- M TitleBlacklist.hooks.php 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/TitleBlacklist refs/changes/97/162597/1 diff --git a/TitleBlacklist.hooks.php b/TitleBlacklist.hooks.php index 78379a3..0718aac 100644 --- a/TitleBlacklist.hooks.php +++ b/TitleBlacklist.hooks.php @@ -159,7 +159,7 @@ } elseif ( !$section ) { # Block redirects to nonexistent blacklisted titles $retitle = Title::newFromRedirect( $text ); - if ( $retitle !== null && !$retitle->exists() ) { + if ( $retitle !== null && !$retitle->isExternal() && !$retitle->exists() ) { $blacklisted = TitleBlacklist::singleton()->userCannot( $retitle, $wgUser, 'create' ); if ( $blacklisted instanceof TitleBlacklistEntry ) { $error = Html::openElement( 'div', array( 'class' => 'errorbox' ) ) . -- To view, visit https://gerrit.wikimedia.org/r/162597 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I445fd2052a54233dd6311e0a60e8aa6f896f68f8 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/TitleBlacklist Gerrit-Branch: master Gerrit-Owner: Jackmcbarn <jackmcb...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits