1 parent
6e5568551f
commit
54c5cd26ab
1 file changed
+7
-3
@@ -1220,9 +1220,13 @@ def _getCurrentFile():
|
||||
|
||||
|
||||
def _validate(target, filename):
|
||||
return filename == "/".join(
|
||||
map(lambda x: fileManager.sanitize_name(target, x), filename.split("/"))
|
||||
)
|
||||
if target == FileDestinations.SDCARD:
|
||||
# we make no assumptions about the shape of valid SDCard file names
|
||||
return True
|
||||
else:
|
||||
return filename == "/".join(
|
||||
map(lambda x: fileManager.sanitize_name(target, x), filename.split("/"))
|
||||
)
|
||||
|
||||
|
||||
class WerkzeugFileWrapper(octoprint.filemanager.util.AbstractFileWrapper):
|
||||
|
||||
Reference in new issue
Block a user