From 9f7e4f0d7c59b078eee6e0f6fbdb0e7f7244e013 Mon Sep 17 00:00:00 2001 From: "C.L" Date: Thu, 29 Sep 2022 22:06:29 -0400 Subject: [PATCH] Gyrotron sanitization --- code/modules/power/fusion/gyrotron/gyrotron.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/power/fusion/gyrotron/gyrotron.dm b/code/modules/power/fusion/gyrotron/gyrotron.dm index b2b33ef96bd..b84d04871e4 100644 --- a/code/modules/power/fusion/gyrotron/gyrotron.dm +++ b/code/modules/power/fusion/gyrotron/gyrotron.dm @@ -53,7 +53,8 @@ GLOBAL_LIST_EMPTY(gyrotrons) /obj/machinery/power/emitter/gyrotron/attackby(var/obj/item/W, var/mob/user) if(istype(W, /obj/item/device/multitool)) - var/new_ident = tgui_input_text(usr, "Enter a new ident tag.", "Gyrotron", id_tag) + var/new_ident = tgui_input_text(usr, "Enter a new ident tag.", "Gyrotron", id_tag, MAX_NAME_LEN) + new_ident = sanitize(new_ident,MAX_NAME_LEN) if(new_ident && user.Adjacent(src)) id_tag = new_ident return