fix PHP Warning if keys contain a backslash as in namespaced classes

This commit is contained in:
Ralf Becker 2018-02-15 09:51:05 +01:00
parent 47f96640c9
commit e3c67a1c63

View File

@ -207,7 +207,7 @@ class Files extends Base implements Provider
*/
function filename(array $keys,$mkdir=false)
{
$fname = $this->base_path.'/'.str_replace(array(':','*'),'-',implode('/',$keys));
$fname = $this->base_path.'/'.str_replace(array(':','*','\\'),'-',implode('/',$keys));
if ($mkdir && !file_exists($dirname=dirname($fname)))
{