From 7dbb459b55642f48c99bc2e5b806ef7a6e971881 Mon Sep 17 00:00:00 2001 From: Czespo Date: Thu, 3 Oct 2024 14:51:50 +0200 Subject: [PATCH] Fix URL parsing issue with '?' after '#' Fixes #13583, close #15670 --- PowerEditor/src/Notepad_plus.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PowerEditor/src/Notepad_plus.cpp b/PowerEditor/src/Notepad_plus.cpp index 57e31ec81..a1e943c3b 100644 --- a/PowerEditor/src/Notepad_plus.cpp +++ b/PowerEditor/src/Notepad_plus.cpp @@ -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;