dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1fc17b0
)
Slight adjustment to self-interwiki fix: disallow empty title links
author
Brion Vibber
<brion@users.mediawiki.org>
Sat, 27 Nov 2004 09:03:16 +0000
(09:03 +0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Sat, 27 Nov 2004 09:03:16 +0000
(09:03 +0000)
includes/Title.php
patch
|
blob
|
history
diff --git
a/includes/Title.php
b/includes/Title.php
index
7615050
..
435c534
100644
(file)
--- 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...