aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Search.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-02-04 12:48:47 +0000
committerMario <mario@mariovavti.com>2022-02-04 12:48:47 +0000
commitcb6055c1b83ba7811c452334d64c3981cca1a326 (patch)
treef106ffd297c040f5c9906fe8ce56c3217f753a2f /Zotlabs/Module/Search.php
parent25424c16e41dc4773a7464129cac7a9acd4667dc (diff)
downloadvolse-hubzilla-cb6055c1b83ba7811c452334d64c3981cca1a326.tar.gz
volse-hubzilla-cb6055c1b83ba7811c452334d64c3981cca1a326.tar.bz2
volse-hubzilla-cb6055c1b83ba7811c452334d64c3981cca1a326.zip
clean the url from parameters
Diffstat (limited to 'Zotlabs/Module/Search.php')
-rw-r--r--Zotlabs/Module/Search.php5
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));
}