diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-03-31 13:57:32 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-07 13:18:13 +0200 |
commit | 4460f92727dc024bf89407c94bf899b914823a67 (patch) | |
tree | fa5aa052a24901c7d29a9ae4abc90155937f1dc2 /tests/unit/plugins | |
parent | f507be41284ec6b06f0a43011a4658e5f786d5f4 (diff) | |
download | weechat-4460f92727dc024bf89407c94bf899b914823a67.zip |
relay: stop URL address before the first question mark if colon is not found (issue #2066)
Diffstat (limited to 'tests/unit/plugins')
-rw-r--r-- | tests/unit/plugins/relay/test-relay-remote.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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")); } /* |