mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-28 23:04:34 +08:00
Forbid interpolation in setting visibility preset files
We might use characters that collide with this. Contributes to issue CURA-5734.
This commit is contained in:
parent
a58c63bbb8
commit
db0da61506
@ -69,7 +69,7 @@ class SettingVisibilityPreset(QObject):
|
||||
Logger.log("e", "[%s] is not a file", file_path)
|
||||
return None
|
||||
|
||||
parser = ConfigParser(allow_no_value = True) # Accept options without any value,
|
||||
parser = ConfigParser(interpolation = None, allow_no_value = True) # Accept options without any value,
|
||||
|
||||
parser.read([file_path])
|
||||
if not parser.has_option("general", "name") or not parser.has_option("general", "weight"):
|
||||
|
Loading…
x
Reference in New Issue
Block a user