mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-12 16:44:43 +01:00
Sets a saner length limit to ID assignments and paintings' titles. (#76723)
This commit is contained in:
@@ -206,7 +206,7 @@
|
||||
if("PRG_assign")
|
||||
if(!computer || !authenticated_card || !inserted_auth_card)
|
||||
return TRUE
|
||||
var/new_asignment = sanitize(params["assignment"])
|
||||
var/new_asignment = trim(sanitize(params["assignment"]), MAX_NAME_LEN)
|
||||
inserted_auth_card.assignment = new_asignment
|
||||
playsound(computer, SFX_TERMINAL_TYPE, 50, FALSE)
|
||||
inserted_auth_card.update_label()
|
||||
|
||||
Reference in New Issue
Block a user