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

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGhostkeeper <rubend@tutanota.com>2018-01-22 17:37:51 +0300
committerGhostkeeper <rubend@tutanota.com>2018-01-22 17:37:51 +0300
commit50ccf101d83fab1a3530c0393fcbf6bd0980d3c8 (patch)
tree0d1af254155b94ccbadd417baef66c0eb53cb52b /plugins/3MFWriter
parent20ab6265c8d4cbc83230b6f57f4595a423355bcf (diff)
Don't write Octoprint keys to workspace projects
They should not be shared since they are private keys, so let's protect the user from accidentally sharing it via a project file.
Diffstat (limited to 'plugins/3MFWriter')
-rw-r--r--plugins/3MFWriter/ThreeMFWorkspaceWriter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/3MFWriter/ThreeMFWorkspaceWriter.py b/plugins/3MFWriter/ThreeMFWorkspaceWriter.py
index f07a37a25f..825259ad58 100644
--- a/plugins/3MFWriter/ThreeMFWorkspaceWriter.py
+++ b/plugins/3MFWriter/ThreeMFWorkspaceWriter.py
@@ -97,7 +97,7 @@ class ThreeMFWorkspaceWriter(WorkspaceWriter):
file_in_archive.compress_type = zipfile.ZIP_DEFLATED
# Do not include the network authentication keys
- ignore_keys = {"network_authentication_id", "network_authentication_key"}
+ ignore_keys = {"network_authentication_id", "network_authentication_key", "octoprint_api_key"}
serialized_data = container.serialize(ignored_metadata_keys = ignore_keys)
archive.writestr(file_in_archive, serialized_data)