diff options
author | Mario <mario@mariovavti.com> | 2021-01-25 20:27:50 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-01-25 20:27:50 +0000 |
commit | 0e9d99c603d84b76c4774aa39dc782992bd91cdc (patch) | |
tree | 36e20b9a53119b19d1ba8782a1838194d546d768 /Zotlabs/Module/Network.php | |
parent | 77793e17c04b1f67c10a83e7877c36a8b11ddbaa (diff) | |
download | volse-hubzilla-0e9d99c603d84b76c4774aa39dc782992bd91cdc.tar.gz volse-hubzilla-0e9d99c603d84b76c4774aa39dc782992bd91cdc.tar.bz2 volse-hubzilla-0e9d99c603d84b76c4774aa39dc782992bd91cdc.zip |
expose manual public item import from searchbar, set commen_policy in Activity::store() to what we get if we get something otherwise default to authenticated, comments by the owner have the relay flag set and therefor $perm will be not be set to post_comments - always check if we own the parent in lib/libzot (not only if $perm = send_stream) if otherwise not allowed
Diffstat (limited to 'Zotlabs/Module/Network.php')
-rw-r--r-- | Zotlabs/Module/Network.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Module/Network.php b/Zotlabs/Module/Network.php index e9edd8de3..84c2463d6 100644 --- a/Zotlabs/Module/Network.php +++ b/Zotlabs/Module/Network.php @@ -20,7 +20,7 @@ class Network extends \Zotlabs\Web\Controller { return; } - if(in_array(substr($_GET['search'],0,1),[ '@', '!', '?'])) + if(in_array(substr($_GET['search'],0,1),[ '@', '!', '?']) || strpos($_GET['search'], 'https://') === 0) goaway('search' . '?f=&search=' . $_GET['search']); if(count($_GET) < 2) { |