Replaces a bunch of input() with stripped_input()

Some of these were exploitable for XSS, as well.
This commit is contained in:
tkdrg
2015-01-11 19:02:53 -03:00
parent 713da9344b
commit b852aa41ea
20 changed files with 29 additions and 35 deletions
+1 -2
View File
@@ -59,12 +59,11 @@
/obj/structure/bodycontainer/attackby(P as obj, mob/user as mob)
if (istype(P, /obj/item/weapon/pen))
var/t = input(user, "What would you like the label to be?", text("[]", name), null) as text
var/t = stripped_input(user, "What would you like the label to be?", text("[]", name), null)
if (user.get_active_hand() != P)
return
if ((!in_range(src, usr) && src.loc != user))
return
t = copytext(sanitize(t),1,MAX_MESSAGE_LEN)
if (t)
name = text("[]- '[]'", initial(name), t)
else