From 4d6f2118c845669fbf29cc8514294cd3acf8a64c Mon Sep 17 00:00:00 2001 From: silicons <2003111+silicons@users.noreply.github.com> Date: Tue, 15 Dec 2020 13:32:27 -0700 Subject: [PATCH] Update saved_circuits.dm --- .../modules/integrated_electronics/core/saved_circuits.dm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/code/modules/integrated_electronics/core/saved_circuits.dm b/code/modules/integrated_electronics/core/saved_circuits.dm index 61ada24b25..64451c442c 100644 --- a/code/modules/integrated_electronics/core/saved_circuits.dm +++ b/code/modules/integrated_electronics/core/saved_circuits.dm @@ -91,7 +91,7 @@ /obj/item/integrated_circuit/proc/load(list/component_params) // Load name if(component_params["name"]) - displayed_name = component_params["name"] + displayed_name = html_encode(component_params["name"]) // Load input values if(component_params["inputs"]) @@ -152,19 +152,17 @@ /obj/item/electronic_assembly/proc/load(list/assembly_params) // Load modified name, if any. if(assembly_params["name"]) - name = assembly_params["name"] + name = html_encode(assembly_params["name"]) // Load modified description, if any. if(assembly_params["desc"]) - desc = assembly_params["desc"] + desc = html_encode(assembly_params["desc"]) if(assembly_params["detail_color"]) detail_color = assembly_params["detail_color"] update_icon() - - // Attempts to save an assembly into a save file format. // Returns null if assembly is not complete enough to be saved. /datum/controller/subsystem/processing/circuit/proc/save_electronic_assembly(obj/item/electronic_assembly/assembly)