[s] Fixes unsanitized input for Bluespace Navigation Gigabeacon (this time without unrelated changes to hold it up) (#50441)

closes #50435
This commit is contained in:
Kyle Spier-Swenson
2020-04-07 09:35:15 +12:00
committed by GitHub
parent 0738549b5b
commit 8a9a6c3f49
@@ -38,7 +38,7 @@ obj/machinery/spaceship_navigation_beacon/emp_act()
/obj/machinery/spaceship_navigation_beacon/multitool_act(mob/living/user, obj/item/multitool/I)
..()
if(panel_open)
var/new_name = "Beacon_[input("Enter the custom name for this beacon", "It be Beacon ..your input..") as text|null]"
var/new_name = "Beacon_[stripped_input("Enter the custom name for this beacon", "It be Beacon ..your input..")]"
if(new_name && Adjacent(user))
name = new_name
to_chat(user, "<span class='notice'>You change beacon name to [name].</span>")