Bug #1224

Chat area allows too long string

Added by Spyhawk 7 months ago. Updated 6 months ago.

Status:Fixed% Done:

100%

Priority:LowSpent time:-
Assignee:-
Category:Mod CGAME
Target version:2.77
OS: Arch:

Description

It is possible to enter more characters than what would be displayed on the chat aera (even though it splits long input on muliple lines).
Retricts the input length or make it prints everything (might be better to have a definied limit though).


Related issues

Related to ET: Legacy Development - Bug #981: Some characters don't appear in chat Confirmed 31.01.2017

Associated revisions

Revision 0d66e08d
Added by Spyhawk 6 months ago

mod: fixed allowed chat length longer than server side, refs #1224

History

#1 Updated by Timothy 7 months ago

  • Subject changed from Chat aera allows too long string to Chat area allows too long string

#2 Updated by Spyhawk 6 months ago

See MAX_SAY_TEXT, limited to 150 chars server side, and CG_MessageSend_f() with messageText limited to 256 chars client side.

  • check semi-colon characters (;) when passed in string (sanitize).

#3 Updated by Spyhawk 6 months ago

  • Related to Bug #981: Some characters don't appear in chat added

#4 Updated by Spyhawk 6 months ago

This is tricky to fix perfectly, since the allowed string length depends on a number of parameters (player name, color codes, location option, etc.) in addition to the old, inflexible UI code, but the commited change should make the client side limit quite close to the server side limit.

#5 Updated by Spyhawk 6 months ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Also available in: Atom PDF