From 15f142fc7024daca124002d20f8486579c6880cc Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Tue, 12 Nov 2019 23:48:39 +0200 Subject: [PATCH] Ensure content cache key does not contain path separators --- platformio/app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/platformio/app.py b/platformio/app.py index 42dac9c0..34ac4986 100644 --- a/platformio/app.py +++ b/platformio/app.py @@ -199,6 +199,7 @@ class ContentCache(object): return True def get_cache_path(self, key): + assert "/" not in key and "\\" not in key key = str(key) assert len(key) > 3 return join(self.cache_dir, key[-2:], key)