From ac127e7a7b37a4cded6d78f9ec60e8ddea889dfa Mon Sep 17 00:00:00 2001 From: Tom Sommer Date: Fri, 9 Oct 2026 17:38:31 +0200 Subject: [PATCH] Strip the fragment from the RDAP base URL in getFindURL() The fragment branch split on '?' instead of '#', so a base URL with a fragment produced a find URL with the search path after the fragment. --- src/Protocols/AbstractRdapProtocol.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Protocols/AbstractRdapProtocol.php b/src/Protocols/AbstractRdapProtocol.php index 15fb947..c14fb20 100644 --- a/src/Protocols/AbstractRdapProtocol.php +++ b/src/Protocols/AbstractRdapProtocol.php @@ -116,7 +116,7 @@ public function getFindURL(string $target): string } if (str_contains($url, '#')) { - [$url] = explode('?', $url); + [$url] = explode('#', $url); } if (str_contains($url, '?')) { [$url] = explode('?', $url);