From: Tim Starling Date: Tue, 24 Feb 2004 00:09:03 +0000 (+0000) Subject: rejecting "." and ".." -- conflict with directories when rewrite rules are used X-Git-Tag: 1.3.0beta1~958 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=01d2ee56718f1ee2b64b85db29b172b7ba214a48;p=lhc%2Fweb%2Fwiklou.git rejecting "." and ".." -- conflict with directories when rewrite rules are used --- diff --git a/includes/Title.php b/includes/Title.php index 926cc281f9..fc846b98eb 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -480,6 +480,11 @@ class Title { if( preg_match( $rxTc, $r ) ) { return false; } + + # "." and ".." conflict with the directories of those names + if ( $r === "." || $r === ".." ) { + return false; + } if( $this->mInterwiki == "") $t = $wgLang->ucfirst( $r ); $this->mDbkeyform = $t;