diff --git a/code/game/machinery/computer/card.dm b/code/game/machinery/computer/card.dm index 8914d5b6ff4..9e79a702fc4 100644 --- a/code/game/machinery/computer/card.dm +++ b/code/game/machinery/computer/card.dm @@ -245,7 +245,9 @@ if (authenticated) var/t1 = href_list["assign_target"] if(t1 == "Custom") - t1 = input("Enter a custom job assignment.","Assignment") + var/temp_t = copytext(sanitize(input("Enter a custom job assignment.","Assignment")),1,MAX_MESSAGE_LEN) + if(temp_t) + t1 = temp_t else modify.access = ( istype(src,/obj/machinery/computer/card/centcom) ? get_centcom_access(t1) : get_access(t1) ) if (modify)