Fix URL parsing issue with '?' after '#'

Fixes #13583, close #15670
This commit is contained in:
Czespo 2024-10-03 14:51:50 +02:00 committed by Don Ho
parent 5a02c17803
commit 7dbb459b55

View File

@ -3303,7 +3303,7 @@ void scanToUrlEnd(const wchar_t *text, int textLen, int start, int* distance)
break;
case sFragment:
if (!isUrlTextChar(text [p]))
if (text [p] != '?' && !isUrlTextChar(text [p]))
{
*distance = p - start;
return;