Fix infinite loop on rich text box tag parsing with incomplete end of tag.

This commit is contained in:
Chandler Cox
2025-07-23 19:52:42 -05:00
parent bb37f980ed
commit 2dc44ac1a6

View File

@@ -204,6 +204,10 @@ namespace FlaxEngine.Utilities
SkipWhitespace();
while (Peek() != '>')
{
// Return false if start of new html tag is detected.
if (Peek() == '<')
return false;
if (Peek() == '/')
{
// Handle trailing forward slash