mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Merge branch '3.2.x'
* 3.2.x: [ticket/13250] Use faster str_replace() instead of preg_replace() [ticket/13250] Replace slashes in cache file names
This commit is contained in:
commit
f11fd2b726
1 changed files with 1 additions and 1 deletions
2
phpBB/phpbb/cache/driver/file.php
vendored
2
phpBB/phpbb/cache/driver/file.php
vendored
|
@ -608,6 +608,6 @@ class file extends \phpbb\cache\driver\base
|
||||||
*/
|
*/
|
||||||
protected function clean_varname($varname)
|
protected function clean_varname($varname)
|
||||||
{
|
{
|
||||||
return str_replace('/', '-', $varname);
|
return str_replace(array('/', '\\'), '-', $varname);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue