]> git.mxchange.org Git - friendica.git/blobdiff - mod/wallmessage.php
Friendica now requires PHP 7.3 or above
[friendica.git] / mod / wallmessage.php
index 6e0ea0caf2019d720e55ceeef5019fffc39bf898..3f9d24ac35cffd65b1b3b19fd2c754a852b86672 100644 (file)
@@ -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;
        }