X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FSearch%2FDirectory.php;h=b3231a90852bacc0e07ae9668a081594b069fae3;hb=69e4254dcc51345a36e13fb96f94d9b57bc37489;hp=6c898ecd0abbe282bc91bf5b7e73f6473bfc40f1;hpb=2a431b580f2e8f6a596e84175932e793678cde63;p=friendica.git diff --git a/src/Module/Search/Directory.php b/src/Module/Search/Directory.php index 6c898ecd0a..b3231a9085 100644 --- a/src/Module/Search/Directory.php +++ b/src/Module/Search/Directory.php @@ -1,6 +1,6 @@ t('Permission denied.')); + if (!DI::userSession()->getLocalUserId()) { + DI::sysmsg()->addNotice(DI::l10n()->t('Permission denied.')); return Login::form(); } - $search = Strings::escapeTags(trim(rawurldecode($_REQUEST['search'] ?? ''))); + $search = trim(rawurldecode($_REQUEST['search'] ?? '')); if (empty(DI::page()['aside'])) { DI::page()['aside'] = '';