TG: Sanitize added to agent cards and ID computer.

Revision: r3556
Author: 	 johnsonmt88
This commit is contained in:
Erthilo
2012-05-10 01:56:37 +01:00
parent 98486c4bc0
commit dfb960139c
+3 -1
View File
@@ -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)