Rename removeTags to escapeTags
rename function and update calls.
This commit is contained in:
parent
063f0e9cb0
commit
218f0734be
51 changed files with 233 additions and 240 deletions
14
mod/item.php
14
mod/item.php
|
@ -204,7 +204,7 @@ function item_post(App $a) {
|
|||
$objecttype = $orig_post['object-type'];
|
||||
$app = $orig_post['app'];
|
||||
$categories = $orig_post['file'];
|
||||
$title = Strings::removeTags(trim($_REQUEST['title']));
|
||||
$title = Strings::escapeTags(trim($_REQUEST['title']));
|
||||
$body = Strings::escapeHtml(trim($_REQUEST['body']));
|
||||
$private = $orig_post['private'];
|
||||
$pubmail_enabled = $orig_post['pubmail'];
|
||||
|
@ -236,13 +236,13 @@ function item_post(App $a) {
|
|||
$str_contact_deny = perms2str(defaults($_REQUEST, 'contact_deny', ''));
|
||||
}
|
||||
|
||||
$title = Strings::removeTags(trim(defaults($_REQUEST, 'title' , '')));
|
||||
$location = Strings::removeTags(trim(defaults($_REQUEST, 'location', '')));
|
||||
$coord = Strings::removeTags(trim(defaults($_REQUEST, 'coord' , '')));
|
||||
$verb = Strings::removeTags(trim(defaults($_REQUEST, 'verb' , '')));
|
||||
$emailcc = Strings::removeTags(trim(defaults($_REQUEST, 'emailcc' , '')));
|
||||
$title = Strings::escapeTags(trim(defaults($_REQUEST, 'title' , '')));
|
||||
$location = Strings::escapeTags(trim(defaults($_REQUEST, 'location', '')));
|
||||
$coord = Strings::escapeTags(trim(defaults($_REQUEST, 'coord' , '')));
|
||||
$verb = Strings::escapeTags(trim(defaults($_REQUEST, 'verb' , '')));
|
||||
$emailcc = Strings::escapeTags(trim(defaults($_REQUEST, 'emailcc' , '')));
|
||||
$body = Strings::escapeHtml(trim(defaults($_REQUEST, 'body' , '')));
|
||||
$network = Strings::removeTags(trim(defaults($_REQUEST, 'network' , Protocol::DFRN)));
|
||||
$network = Strings::escapeTags(trim(defaults($_REQUEST, 'network' , Protocol::DFRN)));
|
||||
$guid = System::createUUID();
|
||||
|
||||
$postopts = defaults($_REQUEST, 'postopts', '');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue