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 authored Feb 10, 2024
1 parent 439db28 commit cc55c2d
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 @@ -4371,7 +4371,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 cc55c2d

Please sign in to comment.