From: Tim Starling Date: Fri, 28 May 2004 07:51:38 +0000 (+0000) Subject: Titles containing ./ declared invalid X-Git-Tag: 1.5.0alpha1~3178 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=8324dcee58abd756a0a4802ec37b49eb31ac26bf;p=lhc%2Fweb%2Fwiklou.git Titles containing ./ declared invalid --- 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; }