Sanitizes Circuit Inputs

This commit is contained in:
Neerti
2017-11-17 18:38:48 -05:00
parent 2a55433ca9
commit 264372ff1a
3 changed files with 7 additions and 1 deletions
@@ -125,6 +125,7 @@
if("string")
accepting_refs = 0
new_data = input("Now type in a string.","[src] string writing") as null|text
new_data = sanitizeSafe(new_data, MAX_MESSAGE_LEN, 0, 0)
if(istext(new_data) && CanInteract(user, physical_state))
data_to_write = new_data
to_chat(user, "<span class='notice'>You set \the [src]'s memory to \"[new_data]\".</span>")