[ticket/13250] Replace slashes in cache file names

PHPBB3-13250
This commit is contained in:
Marc Alexander 2017-01-21 11:21:38 +01:00
parent 3567f45e3d
commit 6c09910c10
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -601,6 +601,6 @@ class file extends \phpbb\cache\driver\base
*/ */
protected function clean_varname($varname) protected function clean_varname($varname)
{ {
return str_replace('/', '-', $varname); return preg_replace('#[\\\\\\\/]#', '-', $varname);
} }
} }