From: Brion Vibber Date: Sat, 27 Nov 2004 09:03:16 +0000 (+0000) Subject: Slight adjustment to self-interwiki fix: disallow empty title links X-Git-Tag: 1.5.0alpha1~1220 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=21cc27b14a0d30d87f7820f88e5c7dc405f0a1ee;p=lhc%2Fweb%2Fwiklou.git Slight adjustment to self-interwiki fix: disallow empty title links --- 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...