Merge pull request #11515 from Tayyyyyyy/sanitize

Sanitize all inputs
This commit is contained in:
variableundefined
2019-08-11 22:09:10 +08:00
committed by GitHub
37 changed files with 90 additions and 79 deletions
@@ -1263,7 +1263,7 @@ var/global/list/special_role_times = list( //minimum age (in days) for accounts
if("input")
switch(href_list["preference"])
if("name")
var/raw_name = input(user, "Choose your character's name:", "Character Preference") as text|null
var/raw_name = clean_input("Choose your character's name:", "Character Preference", , user)
if(!isnull(raw_name)) // Check to ensure that the user entered text (rather than cancel.)
var/new_name = reject_bad_name(raw_name, 1)
if(new_name)