diff options
author | Tristan Darricau <github@nicofuma.fr> | 2017-02-05 18:11:16 +0100 |
---|---|---|
committer | Tristan Darricau <github@nicofuma.fr> | 2017-02-05 18:11:16 +0100 |
commit | 1470985ff20197589cbbab96180d80b0148d20d5 (patch) | |
tree | f3ea16a9e9855be6750697d10e46a6ff3f0054f4 /phpBB/phpbb/cache/driver | |
parent | c3896c8b5d56375df91f9357bc6f8eb22bfbebbb (diff) | |
parent | fbff3b77bdf483adbf88baababebbc1ddd2c3b83 (diff) | |
download | forums-1470985ff20197589cbbab96180d80b0148d20d5.tar forums-1470985ff20197589cbbab96180d80b0148d20d5.tar.gz forums-1470985ff20197589cbbab96180d80b0148d20d5.tar.bz2 forums-1470985ff20197589cbbab96180d80b0148d20d5.tar.xz forums-1470985ff20197589cbbab96180d80b0148d20d5.zip |
Merge pull request #4660 from marc1706/ticket/13250
[ticket/13250] Replace slashes in cache file names
* marc1706/ticket/13250:
[ticket/13250] Use faster str_replace() instead of preg_replace()
[ticket/13250] Replace slashes in cache file names
Diffstat (limited to 'phpBB/phpbb/cache/driver')
-rw-r--r-- | phpBB/phpbb/cache/driver/file.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/cache/driver/file.php b/phpBB/phpbb/cache/driver/file.php index fae4614039..1e9ee960dc 100644 --- a/phpBB/phpbb/cache/driver/file.php +++ b/phpBB/phpbb/cache/driver/file.php @@ -601,6 +601,6 @@ class file extends \phpbb\cache\driver\base */ protected function clean_varname($varname) { - return str_replace('/', '-', $varname); + return str_replace(array('/', '\\'), '-', $varname); } } |