From 8324dcee58abd756a0a4802ec37b49eb31ac26bf Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Fri, 28 May 2004 07:51:38 +0000 Subject: [PATCH] Titles containing ./ declared invalid --- includes/Title.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Title.php b/includes/Title.php index 86262db122..431811029c 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -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; } -- 2.20.1