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 a1a43afe53
commit c9cc1f2e63

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)))
{