aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-03-22 10:01:32 +0000
committerMario <mario@mariovavti.com>2021-03-22 10:01:32 +0000
commit35ce7dbeaba84ce1c93b7714f0beb5c472033bd7 (patch)
tree338486c7b1e7f418ba013eb94a5232a66f68ba17
parent02d4c5ac90b20a2019e3401be233b9d92d41d4e7 (diff)
downloadvolse-hubzilla-35ce7dbeaba84ce1c93b7714f0beb5c472033bd7.tar.gz
volse-hubzilla-35ce7dbeaba84ce1c93b7714f0beb5c472033bd7.tar.bz2
volse-hubzilla-35ce7dbeaba84ce1c93b7714f0beb5c472033bd7.zip
do not treat an URL including an @ like a webbie
-rw-r--r--Zotlabs/Module/Search.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Module/Search.php b/Zotlabs/Module/Search.php
index 8a87d98f7..73dfa0816 100644
--- a/Zotlabs/Module/Search.php
+++ b/Zotlabs/Module/Search.php
@@ -101,7 +101,7 @@ class Search extends Controller {
}
// look for a naked webbie
- if (strpos($search, '@') !== false) {
+ if (strpos($search,'@') !== false && strpos($search,'http') !== 0) {
goaway(z_root() . '/directory' . '?f=1&navsearch=1&search=' . $search);
}