mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 23:27:34 +01:00
Limits pill names to 42 characters (#67744)
This commit is contained in:
@@ -136,7 +136,11 @@
|
||||
if("change_current_volume")
|
||||
current_volume = clamp(text2num(params["volume"]), min_volume, max_volume)
|
||||
if("change_product_name")
|
||||
product_name = html_encode(params["name"])
|
||||
var/formatted_name = html_encode(params["name"])
|
||||
if (length(formatted_name) > MAX_NAME_LEN)
|
||||
product_name = copytext(formatted_name, 1, MAX_NAME_LEN+1)
|
||||
else
|
||||
product_name = formatted_name
|
||||
if("change_product")
|
||||
product = params["product"]
|
||||
if (product == "pill")
|
||||
|
||||
Reference in New Issue
Block a user