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:
7a4c57b
)
rejecting "." and ".." -- conflict with directories when rewrite rules are used
author
Tim Starling
<tstarling@users.mediawiki.org>
Tue, 24 Feb 2004 00:09:03 +0000
(
00:09
+0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Tue, 24 Feb 2004 00:09:03 +0000
(
00:09
+0000)
includes/Title.php
patch
|
blob
|
history
diff --git
a/includes/Title.php
b/includes/Title.php
index
926cc28
..
fc846b9
100644
(file)
--- 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;