Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVojtech Kral <vojtech@kral.hk>2019-08-26 17:39:08 +0300
committerVojtech Kral <vojtech@kral.hk>2019-08-27 11:37:34 +0300
commitf9184f3564ec8805d773e331a6c25c64a24dd284 (patch)
treed2b9bbcdb187c2ba37d941f5f5d2adb1d6f222d1 /src/slic3r/GUI/PresetBundle.cpp
parent4edae08a11c00344178c1235086348fd59c044d2 (diff)
PresetBundle: Add print_host to options considered security-sensitive
full_config_secure() now also removes print_host option alongside printhost_apikey and printhost_cafile.
Diffstat (limited to 'src/slic3r/GUI/PresetBundle.cpp')
-rw-r--r--src/slic3r/GUI/PresetBundle.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/slic3r/GUI/PresetBundle.cpp b/src/slic3r/GUI/PresetBundle.cpp
index d6e99b014..af1298bfb 100644
--- a/src/slic3r/GUI/PresetBundle.cpp
+++ b/src/slic3r/GUI/PresetBundle.cpp
@@ -445,6 +445,7 @@ DynamicPrintConfig PresetBundle::full_config() const
DynamicPrintConfig PresetBundle::full_config_secure() const
{
DynamicPrintConfig config = this->full_config();
+ config.erase("print_host");
config.erase("printhost_apikey");
config.erase("printhost_cafile");
return config;