mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-23 01:07:05 +01:00
Circuit component blueprint name validation fix (#6615)
This commit is contained in:
@@ -53,7 +53,7 @@
|
||||
/obj/item/integrated_circuit/proc/verify_save(list/component_params)
|
||||
var/init_name = initial(name)
|
||||
// Validate name
|
||||
if(component_params["name"] && component_params["name"] != sanitizeName(component_params["name"]))
|
||||
if(component_params["name"] && component_params["name"] != sanitizeSafe(component_params["name"], MAX_MESSAGE_LEN, 0, 0))
|
||||
return "Bad component name at [init_name]."
|
||||
|
||||
// Validate input values
|
||||
@@ -145,7 +145,7 @@
|
||||
// Returns null on success, error name on failure
|
||||
/obj/item/electronic_assembly/proc/verify_save(list/assembly_params)
|
||||
// Validate name and color
|
||||
if(assembly_params["name"] && assembly_params["name"] != sanitizeName(assembly_params["name"]))
|
||||
if(assembly_params["name"] && assembly_params["name"] != sanitizeSafe(assembly_params["name"], MAX_MESSAGE_LEN, 0, 0))
|
||||
return "Bad assembly name."
|
||||
if(assembly_params["desc"] && !reject_bad_text(assembly_params["desc"]))
|
||||
return "Bad assembly description."
|
||||
|
||||
Reference in New Issue
Block a user