Titles containing ./ declared invalid
authorTim Starling <tstarling@users.mediawiki.org>
Fri, 28 May 2004 07:51:38 +0000 (07:51 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Fri, 28 May 2004 07:51:38 +0000 (07:51 +0000)
includes/Title.php

index 86262db..4318110 100644 (file)
@@ -718,8 +718,8 @@ class Title {
                        return false;
                }
                
-               # "." and ".." conflict with the directories of those names
-               if ( $r === "." || $r === ".." ) {
+               # "." and ".." conflict with the directories of those namesa
+               if ( $r === "." || $r === ".." || strpos( $r, "./" ) !== false ) {
                        return false;
                }