From 9a61a62503c64cab83bd870267fc9c806a49629f Mon Sep 17 00:00:00 2001 From: Bizzonium Date: Sat, 4 Feb 2023 23:02:32 +0600 Subject: [PATCH] Fix: length check for ban reason with non-ascii symbols --- code/modules/admin/sql_ban_system.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/admin/sql_ban_system.dm b/code/modules/admin/sql_ban_system.dm index 3c26e11c86c3b..e5d5c0d93ce2d 100644 --- a/code/modules/admin/sql_ban_system.dm +++ b/code/modules/admin/sql_ban_system.dm @@ -457,7 +457,7 @@ reason = href_list["reason"] if(!reason) error_state += "No reason was provided." - if(length(reason) > MAX_REASON_LENGTH) + if(length_char(reason) > MAX_REASON_LENGTH) error_state += "Reason cannot be more than [MAX_REASON_LENGTH] characters." if(href_list["editid"]) edit_id = href_list["editid"]