From 4fbd9ebd6337fcbf849421209b952fdcb375bd35 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 7 Feb 2026 09:57:57 +0000 Subject: [PATCH] [Fix] tests: Update URL expectation to match percent-encoded spaces After 9f3a41069 URL tostring re-encodes spaces as %20, so the functional test must expect the encoded form. --- test/functional/cases/260_regex.robot | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/functional/cases/260_regex.robot b/test/functional/cases/260_regex.robot index d5055b0798..3e43b51573 100644 --- a/test/functional/cases/260_regex.robot +++ b/test/functional/cases/260_regex.robot @@ -14,7 +14,7 @@ ${UTF_MESSAGE} ${RSPAMD_TESTDIR}/messages/utf.eml *** Test Cases *** -Newlines +Newlines Scan File ${MESSAGE} Expect Symbol SA_BODY_WORD Expect Symbol SA_BODY_WORD_WITH_SPACE @@ -24,7 +24,7 @@ Newlines Expect Symbol SA_BODY_WORD_WITH_SPACE_BOUNDARIES_3 Expect Symbol SA_BODY_WORD_WITH_SPACE_AND_DOT Expect Symbol With Option FOUND_URL https://google.com/maps/ - Expect Symbol With Option FOUND_URL https://www.google.com/search?q\=hello world&oq\=hello world&aqs\=chrome..69i57j0l5.3045j0j7&sourceid\=chrome&ie\=UTF-8 + Expect Symbol With Option FOUND_URL https://www.google.com/search?q\=hello%20world&oq\=hello%20world&aqs\=chrome..69i57j0l5.3045j0j7&sourceid\=chrome&ie\=UTF-8 Expect Symbol With Option FOUND_URL https://github.com/google/sanitizers/wiki/AddressSanitizer Dynamic Config -- 2.47.3