Rename removeTags to escapeTags

rename function and update calls.
This commit is contained in:
Adam Magness
2018-11-09 13:29:42 -05:00
parent 063f0e9cb0
commit 218f0734be
51 changed files with 233 additions and 240 deletions

View File

@@ -21,7 +21,7 @@ function tagger_content(App $a) {
return;
}
$term = Strings::removeTags(trim($_GET['term']));
$term = Strings::escapeTags(trim($_GET['term']));
// no commas allowed
$term = str_replace([',',' '],['','_'],$term);
@@ -29,7 +29,7 @@ function tagger_content(App $a) {
return;
}
$item_id = (($a->argc > 1) ? Strings::removeTags(trim($a->argv[1])) : 0);
$item_id = (($a->argc > 1) ? Strings::escapeTags(trim($a->argv[1])) : 0);
Logger::log('tagger: tag ' . $term . ' item ' . $item_id);