From fbc39af2d820843262b71a8a371606b81bb82ff6 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 3 Aug 2004 05:26:27 +0000 Subject: [PATCH] Fix typos and missing case in the check for unreachable relative paths in titles. Fixes [ 760408 ] "Relative" paths in title cause browser trouble --- includes/Title.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/includes/Title.php b/includes/Title.php index 961bdb8424..03bcf97aee 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -750,9 +750,10 @@ class Title { # "." and ".." conflict with the directories of those namesa if ( strpos( $r, "." ) !== false && ( $r === "." || $r === ".." || - strpos( $r, "./" ) === 0 || - strpos( $r, "/./" !== false ) || - strpos( $r, "/../" !== false ) ) ) + strpos( $r, "./" ) === 0 || + strpos( $r, "../" ) === 0 || + strpos( $r, "/./" ) !== false || + strpos( $r, "/../" ) !== false ) ) { wfProfileOut( $fname ); return false; -- 2.20.1