X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FInvite.php;h=1ce9700697c6ae7e67b64fa44f1d2dbe9db24028;hb=d4f97f8a4be8e2e1b1eceaa552f382c0a2528403;hp=566e54b129db3da2ba97c543f00a49abbfb9c23f;hpb=0e2e488521fbcf2d52dc8037ee6e9dd577fbf14c;p=friendica.git diff --git a/src/Module/Invite.php b/src/Module/Invite.php index 566e54b129..1ce9700697 100644 --- a/src/Module/Invite.php +++ b/src/Module/Invite.php @@ -1,6 +1,6 @@ t('Permission denied.')); @@ -58,7 +58,7 @@ class Invite extends BaseModule $recipients = !empty($_POST['recipients']) ? explode("\n", $_POST['recipients']) : []; - $message = !empty($_POST['message']) ? Strings::escapeTags(trim($_POST['message'])) : ''; + $message = !empty($_POST['message']) ? Strings::escapeHtml(trim($_POST['message'])) : ''; $total = 0; $invitation_only = false; @@ -124,7 +124,7 @@ class Invite extends BaseModule info(DI::l10n()->tt('%d message sent.', '%d messages sent.', $total)); } - public static function content(array $parameters = []) + protected function content(array $request = []): string { if (!local_user()) { throw new HTTPException\ForbiddenException(DI::l10n()->t('Permission denied.'));