fixes sanitization

This commit is contained in:
timothyteakettle
2021-01-19 01:04:01 +00:00
parent b956df2226
commit 837e766306
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -2744,7 +2744,7 @@ GLOBAL_LIST_EMPTY(preferences_datums)
//renaming is only allowed if it has the flag for it
if(href_list["loadout_rename"] && (G.loadout_flags & LOADOUT_CAN_NAME))
var/new_name = stripped_input(user, "Enter new name for item. Maximum 32 characters.", "Loadout Item Naming", null, 32)
var/new_name = stripped_input(user, "Enter new name for item. Maximum [MAX_NAME_LEN] characters.", "Loadout Item Naming", null, MAX_NAME_LEN)
if(new_name)
user_gear[LOADOUT_CUSTOM_NAME] = new_name