Skip to content

Commit

Permalink
Security: skip writing print_host and apikey in gcode (#4030)
Browse files Browse the repository at this point in the history
  • Loading branch information
SoftFever committed Feb 14, 2024
1 parent 40f6780 commit 90cfdbf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/libslic3r/GCode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4270,7 +4270,10 @@ void GCode::append_full_config(const Print &print, std::string &str)
// Sorted list of config keys, which shall not be stored into the G-code. Initializer list.
static constexpr auto banned_keys = {
"compatible_printers"sv,
"compatible_prints"sv
"compatible_prints"sv,
"print_host"sv,
"printhost_apikey"sv,
"printhost_cafile"sv
};
assert(std::is_sorted(banned_keys.begin(), banned_keys.end()));
auto is_banned = [](const std::string &key) {
Expand Down

0 comments on commit 90cfdbf

Please sign in to comment.