From e3c67a1c63797a04738c8c47e064dfe25b60c3e8 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 15 Feb 2018 09:51:05 +0100 Subject: [PATCH] fix PHP Warning if keys contain a backslash as in namespaced classes --- api/src/Cache/Files.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Cache/Files.php b/api/src/Cache/Files.php index ee802ab7e8..ff30254672 100644 --- a/api/src/Cache/Files.php +++ b/api/src/Cache/Files.php @@ -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))) {