From 4460f92727dc024bf89407c94bf899b914823a67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 31 Mar 2024 13:57:32 +0200 Subject: relay: stop URL address before the first question mark if colon is not found (issue #2066) --- tests/unit/plugins/relay/test-relay-remote.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/unit/plugins') diff --git a/tests/unit/plugins/relay/test-relay-remote.cpp b/tests/unit/plugins/relay/test-relay-remote.cpp index aab1f032f..e2c7816a8 100644 --- a/tests/unit/plugins/relay/test-relay-remote.cpp +++ b/tests/unit/plugins/relay/test-relay-remote.cpp @@ -127,6 +127,8 @@ TEST(RelayRemote, GetAddress) STRCMP_EQUAL("example.com", relay_remote_get_address ("https://example.com")); STRCMP_EQUAL("example.com", relay_remote_get_address ("https://example.com:8000")); STRCMP_EQUAL("example.com", relay_remote_get_address ("https://example.com:8000/")); + STRCMP_EQUAL("example.com", relay_remote_get_address ("https://example.com:8000/?option=1")); + STRCMP_EQUAL("example.com", relay_remote_get_address ("https://example.com?option=1")); } /* -- cgit v1.2.3