X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fwallmessage.php;h=3f9d24ac35cffd65b1b3b19fd2c754a852b86672;hb=ab77f48b8b4966dc96c97215b4781d9fb32e61a7;hp=6e0ea0caf2019d720e55ceeef5019fffc39bf898;hpb=f66b4af548d22c564287db06ef8ba6176ff4958c;p=friendica.git diff --git a/mod/wallmessage.php b/mod/wallmessage.php index 6e0ea0caf2..3f9d24ac35 100644 --- a/mod/wallmessage.php +++ b/mod/wallmessage.php @@ -37,10 +37,10 @@ function wallmessage_post(App $a) { return; } - $subject = (!empty($_REQUEST['subject']) ? Strings::escapeTags(trim($_REQUEST['subject'])) : ''); - $body = (!empty($_REQUEST['body']) ? Strings::escapeHtml(trim($_REQUEST['body'])) : ''); + $subject = trim($_REQUEST['subject'] ?? ''); + $body = Strings::escapeHtml(trim($_REQUEST['body'] ?? '')); - $recipient = ((DI::args()->getArgc() > 1) ? Strings::escapeTags(DI::args()->getArgv()[1]) : ''); + $recipient = ((DI::args()->getArgc() > 1) ? DI::args()->getArgv()[1] : ''); if ((! $recipient) || (! $body)) { return; }