From cb6055c1b83ba7811c452334d64c3981cca1a326 Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 4 Feb 2022 12:48:47 +0000 Subject: clean the url from parameters --- Zotlabs/Module/Search.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Zotlabs/Module/Search.php') diff --git a/Zotlabs/Module/Search.php b/Zotlabs/Module/Search.php index 1df45233c..6f8fbdfbf 100644 --- a/Zotlabs/Module/Search.php +++ b/Zotlabs/Module/Search.php @@ -7,6 +7,7 @@ use Zotlabs\Lib\Libzot; use Zotlabs\Lib\Activity; use Zotlabs\Lib\ActivityStreams; use Zotlabs\Web\Controller; +use Zotlabs\Lib\Zotfinger; class Search extends Controller { @@ -59,6 +60,10 @@ class Search extends Controller { if (local_channel() && strpos($search, 'https://') === 0 && !$update && !$load) { if (strpos($search, 'b64.') !== false) { + if (strpos($search, '?') !== false) { + $search = strtok($search, '?'); + } + $search = unpack_link_id(basename($search)); } -- cgit v1.2.3