Remove obsolete uses of Strings::escapeTags in mod/item

This commit is contained in:
Hypolite Petovan 2020-09-13 19:51:03 -04:00
parent 76d6962129
commit dc90984106

View file

@ -260,7 +260,7 @@ function item_post(App $a) {
$objecttype = $orig_post['object-type']; $objecttype = $orig_post['object-type'];
$app = $orig_post['app']; $app = $orig_post['app'];
$categories = $orig_post['file'] ?? ''; $categories = $orig_post['file'] ?? '';
$title = Strings::escapeTags(trim($_REQUEST['title'])); $title = trim($_REQUEST['title'] ?? '');
$body = trim($body); $body = trim($body);
$private = $orig_post['private']; $private = $orig_post['private'];
$pubmail_enabled = $orig_post['pubmail']; $pubmail_enabled = $orig_post['pubmail'];
@ -281,13 +281,13 @@ function item_post(App $a) {
$str_group_deny = isset($_REQUEST['group_deny']) ? $aclFormatter->toString($_REQUEST['group_deny']) : $user['deny_gid'] ?? ''; $str_group_deny = isset($_REQUEST['group_deny']) ? $aclFormatter->toString($_REQUEST['group_deny']) : $user['deny_gid'] ?? '';
} }
$title = Strings::escapeTags(trim($_REQUEST['title'] ?? '')); $title = trim($_REQUEST['title'] ?? '');
$location = Strings::escapeTags(trim($_REQUEST['location'] ?? '')); $location = trim($_REQUEST['location'] ?? '');
$coord = Strings::escapeTags(trim($_REQUEST['coord'] ?? '')); $coord = trim($_REQUEST['coord'] ?? '');
$verb = Strings::escapeTags(trim($_REQUEST['verb'] ?? '')); $verb = trim($_REQUEST['verb'] ?? '');
$emailcc = Strings::escapeTags(trim($_REQUEST['emailcc'] ?? '')); $emailcc = trim($_REQUEST['emailcc'] ?? '');
$body = trim($body); $body = trim($body);
$network = Strings::escapeTags(trim(($_REQUEST['network'] ?? '') ?: Protocol::DFRN)); $network = trim(($_REQUEST['network'] ?? '') ?: Protocol::DFRN);
$guid = System::createUUID(); $guid = System::createUUID();
$postopts = $_REQUEST['postopts'] ?? ''; $postopts = $_REQUEST['postopts'] ?? '';