From 21cc27b14a0d30d87f7820f88e5c7dc405f0a1ee Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sat, 27 Nov 2004 09:03:16 +0000 Subject: [PATCH] Slight adjustment to self-interwiki fix: disallow empty title links --- includes/Title.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/includes/Title.php b/includes/Title.php index 7615050152..435c5349ac 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -1111,6 +1111,11 @@ class Title { # Redundant interwiki prefix to the local wiki if ( 0 == strcasecmp( $this->mInterwiki, $wgLocalInterwiki ) ) { + if( $t == '' ) { + # Can't have an empty self-link + wfProfileOut( $fname ); + return false; + } $this->mInterwiki = ''; $firstPass = false; # Do another namespace split... -- 2.20.1