SECURITY FIX: Custom borg names sanitized and copytext'd to MAX_NAME_LEN

This commit is contained in:
Rob Nelson
2014-05-14 20:12:48 -04:00
committed by ZomgPonies
parent 43e60ab01e
commit 188593e452
2 changed files with 2 additions and 2 deletions
@@ -329,7 +329,7 @@
spawn(0)
var/newname
newname = input(src,"You are a robot. Enter a name, or leave blank for the default name.", "Name change","") as text
newname = copytext(sanitize(input(src,"You are a robot. Enter a name, or leave blank for the default name.", "Name change","") as text),1,MAX_NAME_LEN)
if (newname != "")
custom_name = newname