From c91e698e24d8c074efab2b1ee66f211adeedda8c Mon Sep 17 00:00:00 2001 From: Markolie Date: Mon, 17 Aug 2015 21:20:00 +0200 Subject: [PATCH] Fix shuttle call sanitization --- code/game/machinery/computer/communications.dm | 2 +- code/modules/admin/verbs/randomverbs.dm | 2 +- code/modules/mob/living/silicon/ai/ai.dm | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/code/game/machinery/computer/communications.dm b/code/game/machinery/computer/communications.dm index 66c56dd196a..5e5d62cfb4f 100644 --- a/code/game/machinery/computer/communications.dm +++ b/code/game/machinery/computer/communications.dm @@ -170,7 +170,7 @@ var/shuttle_call/shuttle_calls[0] message_cooldown = 0 if("callshuttle") - var/input = stripped_input(usr, "Please enter the reason for calling the shuttle.", "Shuttle Call Reason.","") as text|null + var/input = input(usr, "Please enter the reason for calling the shuttle.", "Shuttle Call Reason.","") as text|null if(!input || ..() || !(is_authenticated(usr) == 2)) nanomanager.update_uis(src) return diff --git a/code/modules/admin/verbs/randomverbs.dm b/code/modules/admin/verbs/randomverbs.dm index 75eda3ea588..e69b9057048 100644 --- a/code/modules/admin/verbs/randomverbs.dm +++ b/code/modules/admin/verbs/randomverbs.dm @@ -916,7 +916,7 @@ Traitors and the like can also be revived with the previous role mostly intact. choice = input("Is this an emergency evacuation or a crew transfer?") in list("Emergency", "Crew Transfer") if (choice == "Emergency") - var/reason = stripped_input(usr, "Optional: Please enter the reason for calling the shuttle.", "Shuttle Call Reason.","") as text|null + var/reason = input(usr, "Optional: Please enter the reason for calling the shuttle.", "Shuttle Call Reason.","") as text|null emergency_shuttle.call_evac(reason) else emergency_shuttle.call_transfer() diff --git a/code/modules/mob/living/silicon/ai/ai.dm b/code/modules/mob/living/silicon/ai/ai.dm index c89552719bb..3afd24a4e36 100644 --- a/code/modules/mob/living/silicon/ai/ai.dm +++ b/code/modules/mob/living/silicon/ai/ai.dm @@ -336,7 +336,7 @@ var/list/ai_verbs_default = list( if(check_unable(AI_CHECK_WIRELESS)) return - var/input = stripped_input(usr, "Please enter the reason for calling the shuttle.", "Shuttle Call Reason.","") as text|null + var/input = input(usr, "Please enter the reason for calling the shuttle.", "Shuttle Call Reason.","") as text|null if(!input || stat) return