From 0da1f535406fb9b3d788541bb4eb8ff56b1ea259 Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Sat, 7 Feb 2009 20:56:49 +0000 Subject: [PATCH] Tiny change to accept back slashes for Windows paths, phpBB passes forward slashes but other code might not git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9316 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index bbeaca9d1d..65bf1f9c65 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -703,7 +703,7 @@ if (!function_exists('stripos')) */ function is_absolute($path) { - return ($path[0] == '/' || (DIRECTORY_SEPARATOR == '\\' && preg_match('#^[a-z]:/#i', $path))) ? true : false; + return ($path[0] == '/' || (DIRECTORY_SEPARATOR == '\\' && preg_match('#^[a-z]:[/\\\]#i', $path))) ? true : false; } /**