forked from platformio/platformio-core
Ensure content cache key does not contain path separators
This commit is contained in:
@ -199,6 +199,7 @@ class ContentCache(object):
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
def get_cache_path(self, key):
|
def get_cache_path(self, key):
|
||||||
|
assert "/" not in key and "\\" not in key
|
||||||
key = str(key)
|
key = str(key)
|
||||||
assert len(key) > 3
|
assert len(key) > 3
|
||||||
return join(self.cache_dir, key[-2:], key)
|
return join(self.cache_dir, key[-2:], key)
|
||||||
|
Reference in New Issue
Block a user