escape_tags calls
implement escapeTags function
This commit is contained in:
parent
a0f65ca7a1
commit
0e01568ccd
16 changed files with 52 additions and 50 deletions
18
mod/item.php
18
mod/item.php
|
@ -205,7 +205,7 @@ function item_post(App $a) {
|
|||
$app = $orig_post['app'];
|
||||
$categories = $orig_post['file'];
|
||||
$title = Strings::removeTags(trim($_REQUEST['title']));
|
||||
$body = escape_tags(trim($_REQUEST['body']));
|
||||
$body = Strings::escapeTags(trim($_REQUEST['body']));
|
||||
$private = $orig_post['private'];
|
||||
$pubmail_enabled = $orig_post['pubmail'];
|
||||
$network = $orig_post['network'];
|
||||
|
@ -236,14 +236,14 @@ 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' , '')));
|
||||
$body = escape_tags(trim(defaults($_REQUEST, 'body' , '')));
|
||||
$network = Strings::removeTags(trim(defaults($_REQUEST, 'network' , Protocol::DFRN)));
|
||||
$guid = System::createUUID();
|
||||
$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' , '')));
|
||||
$body = Strings::escapeTags(trim(defaults($_REQUEST, 'body' , '')));
|
||||
$network = Strings::removeTags(trim(defaults($_REQUEST, 'network' , Protocol::DFRN)));
|
||||
$guid = System::createUUID();
|
||||
|
||||
$postopts = defaults($_REQUEST, 'postopts', '');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue