Merge pull request #5065 from CHOMPStation2/upstream-merge-13825

[MIRROR] Sanitization
This commit is contained in:
Razgriz
2022-10-02 23:01:42 -07:00
committed by GitHub
27 changed files with 81 additions and 51 deletions
@@ -21,7 +21,7 @@
/obj/item/weapon/implantcase/attackby(obj/item/weapon/I as obj, mob/user as mob)
..()
if (istype(I, /obj/item/weapon/pen))
var/t = tgui_input_text(user, "What would you like the label to be?", text("[]", src.name), null)
var/t = tgui_input_text(user, "What would you like the label to be?", text("[]", src.name), null, MAX_NAME_LEN)
if (user.get_active_hand() != I)
return
if((!in_range(src, usr) && src.loc != user))