[s] Sanitizes text input/output in circuits (#32833)

* Adds Sanitization to TTS

* Sanitize input

* stripped_input

* strip debugger input

* Stripped inputs in pin inputs.

* stripped pin input

* stripped string pin input

* stripped char input pin.
This commit is contained in:
kevinz000
2017-11-17 00:36:29 -06:00
committed by CitadelStationBot
parent 2822e5820d
commit 8cf1266b72
7 changed files with 10 additions and 10 deletions
@@ -162,7 +162,7 @@ list[](
var/new_data = null
switch(type_to_use)
if("string")
new_data = input("Now type in a string.","[src] string writing", istext(default) ? default : null) as null|text
new_data = stripped_input(user, "Now type in a string.","[src] string writing", istext(default) ? default : null)
if(istext(new_data) && holder.check_interactivity(user) )
to_chat(user, "<span class='notice'>You input "+new_data+" into the pin.</span>")
return new_data