mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 16:18:01 +01:00
Unsanitized input for advanced injector name allows raw HTML injection (#49531)
About The Pull Request Unsanitized input allows for raw HTML injection on specifying advanced injector name inside a DNA console.
This commit is contained in:
@@ -923,7 +923,7 @@
|
||||
|
||||
if("add_advinjector")
|
||||
if(LAZYLEN(injector_selection) < max_injector_selections)
|
||||
var/new_selection = input(usr, "Enter Adv. Injector name", "Advanced Injectors") as text|null
|
||||
var/new_selection = stripped_input(usr, "Enter Adv. Injector name", "Advanced Injectors")
|
||||
if(new_selection && !(new_selection in injector_selection))
|
||||
injector_selection[new_selection] = list()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user