aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/cache/driver/file.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2017-01-22 17:22:28 +0100
committerMarc Alexander <admin@m-a-styles.de>2017-01-22 17:22:28 +0100
commitfbff3b77bdf483adbf88baababebbc1ddd2c3b83 (patch)
treed78147fdb74f2338678ee4e07795aed7bbfe12f6 /phpBB/phpbb/cache/driver/file.php
parent6c09910c105a3cb637ffc5fcadd225ba82f4cc2d (diff)
downloadforums-fbff3b77bdf483adbf88baababebbc1ddd2c3b83.tar
forums-fbff3b77bdf483adbf88baababebbc1ddd2c3b83.tar.gz
forums-fbff3b77bdf483adbf88baababebbc1ddd2c3b83.tar.bz2
forums-fbff3b77bdf483adbf88baababebbc1ddd2c3b83.tar.xz
forums-fbff3b77bdf483adbf88baababebbc1ddd2c3b83.zip
[ticket/13250] Use faster str_replace() instead of preg_replace()
PHPBB3-13250
Diffstat (limited to 'phpBB/phpbb/cache/driver/file.php')
-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 67c6b84b45..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 preg_replace('#[\\\\\\\/]#', '-', $varname);
+ return str_replace(array('/', '\\'), '-', $varname);
}
}