diff options
| author | Chris Smith <toonarmy@phpbb.com> | 2009-02-07 20:56:49 +0000 |
|---|---|---|
| committer | Chris Smith <toonarmy@phpbb.com> | 2009-02-07 20:56:49 +0000 |
| commit | 0da1f535406fb9b3d788541bb4eb8ff56b1ea259 (patch) | |
| tree | 7aaf841ecbc9879ce9805b9a2d3105ee90fca5fd /phpBB/includes | |
| parent | 14438749e0a4384f8596014878db54dce8ffb44c (diff) | |
| download | forums-0da1f535406fb9b3d788541bb4eb8ff56b1ea259.tar forums-0da1f535406fb9b3d788541bb4eb8ff56b1ea259.tar.gz forums-0da1f535406fb9b3d788541bb4eb8ff56b1ea259.tar.bz2 forums-0da1f535406fb9b3d788541bb4eb8ff56b1ea259.tar.xz forums-0da1f535406fb9b3d788541bb4eb8ff56b1ea259.zip | |
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
Diffstat (limited to 'phpBB/includes')
| -rw-r--r-- | phpBB/includes/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
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; } /** |
