mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 03:27:05 +01:00
SECURITY FIX: Custom borg names sanitized and copytext'd to MAX_NAME_LEN
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user