Fix user being able to enter formatting characters (fixes #2892)

This commit is contained in:
Alexander Overvoorde 2016-02-09 21:31:01 +01:00
parent 2077c51e0b
commit 5adb18528e
1 changed files with 4 additions and 0 deletions

View File

@ -712,6 +712,10 @@ void platform_process_messages()
if (e.text.text[0] == '`' && gConsoleOpen)
break;
// Entering formatting characters is not allowed
if (utf8_is_format_code((int)e.text.text[0]))
break;
utf8 *newText = e.text.text;
int newTextLength = strlen(newText);