mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-26 06:40:08 +01:00
[MIRROR] version up (#12973)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
co-authored by
Kashargul
parent
1efd3c2186
commit
f08e7604c3
@@ -142,9 +142,9 @@
|
||||
switch(action)
|
||||
if("submit")
|
||||
if(max_length)
|
||||
if(length(params["entry"]) > max_length)
|
||||
if(length_char(params["entry"]) > max_length)
|
||||
CRASH("[ui.user] typed a text string longer than the max length")
|
||||
if(encode && (length(html_encode(params["entry"])) > max_length))
|
||||
if(encode && (length_char(html_encode(params["entry"])) > max_length))
|
||||
to_chat(ui.user, span_notice("Your message was clipped due to special character usage."))
|
||||
set_entry(params["entry"])
|
||||
closed = TRUE
|
||||
|
||||
Reference in New Issue
Block a user