Browse Source

Forbid interpolation in setting visibility preset files

We might use characters that collide with this.

Contributes to issue CURA-5734.
Ghostkeeper 6 years ago
parent
commit
db0da61506
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cura/Settings/SettingVisibilityPreset.py

+ 1 - 1
cura/Settings/SettingVisibilityPreset.py

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