From f9184f3564ec8805d773e331a6c25c64a24dd284 Mon Sep 17 00:00:00 2001
From: Vojtech Kral <vojtech@kral.hk>
Date: Mon, 26 Aug 2019 16:39:08 +0200
Subject: [PATCH] PresetBundle: Add print_host to options considered
 security-sensitive

full_config_secure() now also removes print_host option
alongside printhost_apikey and printhost_cafile.
---
 src/slic3r/GUI/PresetBundle.cpp | 1 +
 1 file changed, 1 insertion(+)

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;