aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/cache/driver
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2017-01-21 11:21:38 +0100
committerMarc Alexander <admin@m-a-styles.de>2017-01-21 11:21:38 +0100
commit6c09910c105a3cb637ffc5fcadd225ba82f4cc2d (patch)
tree8ce7ebb0ee74e8199b56ad9844d0d6794c3ed3a7 /phpBB/phpbb/cache/driver
parent3567f45e3d6872fc999862a4b0adb957149e0ed8 (diff)
downloadforums-6c09910c105a3cb637ffc5fcadd225ba82f4cc2d.tar
forums-6c09910c105a3cb637ffc5fcadd225ba82f4cc2d.tar.gz
forums-6c09910c105a3cb637ffc5fcadd225ba82f4cc2d.tar.bz2
forums-6c09910c105a3cb637ffc5fcadd225ba82f4cc2d.tar.xz
forums-6c09910c105a3cb637ffc5fcadd225ba82f4cc2d.zip
[ticket/13250] Replace slashes in cache file names
PHPBB3-13250
Diffstat (limited to 'phpBB/phpbb/cache/driver')
-rw-r--r--phpBB/phpbb/cache/driver/file.php2
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..67c6b84b45 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 preg_replace('#[\\\\\\\/]#', '-', $varname);
}
}