diff options
author | Mario <mario@mariovavti.com> | 2022-02-04 12:48:47 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2022-02-04 12:48:47 +0000 |
commit | cb6055c1b83ba7811c452334d64c3981cca1a326 (patch) | |
tree | f106ffd297c040f5c9906fe8ce56c3217f753a2f | |
parent | 25424c16e41dc4773a7464129cac7a9acd4667dc (diff) | |
download | volse-hubzilla-cb6055c1b83ba7811c452334d64c3981cca1a326.tar.gz volse-hubzilla-cb6055c1b83ba7811c452334d64c3981cca1a326.tar.bz2 volse-hubzilla-cb6055c1b83ba7811c452334d64c3981cca1a326.zip |
clean the url from parameters
-rw-r--r-- | Zotlabs/Module/Search.php | 5 |
1 files changed, 5 insertions, 0 deletions
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)); } |