1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-05 17:23:15 +02:00

relay: stop URL address before the first question mark if colon is not found (issue #2066)

This commit is contained in:
Sébastien Helleu
2024-03-31 13:57:32 +02:00
parent f507be4128
commit 4460f92727
2 changed files with 5 additions and 0 deletions
@@ -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"));
}
/*