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:
Ghostkeeper 2018-10-18 14:54:20 +02:00
parent a58c63bbb8
commit db0da61506
No known key found for this signature in database
GPG Key ID: 86BEF881AE2CF276

View File

@ -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"):