[MIRROR] Encode changes (#11301)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-08-04 16:23:19 -07:00
committed by GitHub
parent 5e6a4639d0
commit 4e2361f8df
202 changed files with 370 additions and 408 deletions

View File

@@ -245,11 +245,11 @@ SUBSYSTEM_DEF(vote)
choices.Add(antag.role_text)
choices.Add("None")
if(VOTE_CUSTOM)
question = sanitizeSafe(tgui_input_text(usr, "What is the vote for?"))
question = tgui_input_text(usr, "What is the vote for?", max_length = MAX_MESSAGE_LEN)
if(!question)
return 0
for(var/i = 1 to 10)
var/option = capitalize(sanitize(tgui_input_text(usr, "Please enter an option or hit cancel to finish")))
var/option = capitalize(tgui_input_text(usr, "Please enter an option or hit cancel to finish", max_length = MAX_MESSAGE_LEN))
if(!option || mode || !usr.client)
break
choices.Add(option)

View File

@@ -238,7 +238,7 @@ SUBSYSTEM_DEF(vote)
if(!question)
return 0
for(var/i = 1 to 10)
var/option = capitalize(sanitize(tgui_input_text(usr, "Please enter an option or hit cancel to finish"))
var/option = capitalize(tgui_input_text(usr, "Please enter an option or hit cancel to finish", max_length = MAX_MESSAGE_LEN)
if(!option || mode || !usr.client)
break
choices.Add(option)