Skip to content

Commit

Permalink
Fix: length check for ban reason with non-ascii symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
Bizzonium committed Feb 15, 2023
1 parent d728e44 commit 9a61a62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/admin/sql_ban_system.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 9a61a62

Please sign in to comment.