mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-19 07:00:14 +01:00
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
This commit is contained in:
commit
1470985ff2
2
phpBB/phpbb/cache/driver/file.php
vendored
2
phpBB/phpbb/cache/driver/file.php
vendored
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user