mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-01-06 23:07:42 -07:00
Security: skip writing print_host and apikey in gcode (#4030)
This commit is contained in:
parent
40f678006d
commit
90cfdbf37c
1 changed files with 4 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue