diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2013-05-16 17:30:23 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2013-05-16 17:30:23 +0200 |
commit | 38dbfc17a782f72737451103b8e4067f152bd0b7 (patch) | |
tree | 58e37c6389af462780750709b316373a6b949a23 /phpBB/includes | |
parent | c6de880cdbf2f7440acb31446a9001762f9d8d16 (diff) | |
download | forums-38dbfc17a782f72737451103b8e4067f152bd0b7.tar forums-38dbfc17a782f72737451103b8e4067f152bd0b7.tar.gz forums-38dbfc17a782f72737451103b8e4067f152bd0b7.tar.bz2 forums-38dbfc17a782f72737451103b8e4067f152bd0b7.tar.xz forums-38dbfc17a782f72737451103b8e4067f152bd0b7.zip |
[ticket/11545] Remove DIRECTORY_SEPARATOR dependency from is_absolute
The given path is an absolute path in general, just not on our current system.
PHPBB3-11545
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 4b144a20a1..b2b12c1445 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -1005,7 +1005,7 @@ if (!function_exists('stripos')) */ function is_absolute($path) { - return (isset($path[0]) && $path[0] == '/' || (DIRECTORY_SEPARATOR == '\\' && preg_match('#^[a-z]:[/\\\]#i', $path))) ? true : false; + return (isset($path[0]) && $path[0] == '/' || preg_match('#^[a-z]:[/\\\]#i', $path)) ? true : false; } /** |