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
|
|
@ -34,7 +34,7 @@ function group_post(App $a) {
|
|||
if (($a->argc == 2) && ($a->argv[1] === 'new')) {
|
||||
BaseModule::checkFormSecurityTokenRedirectOnError('/group/new', 'group_edit');
|
||||
|
||||
$name = Strings::removeTags(trim($_POST['groupname']));
|
||||
$name = Strings::escapeTags(trim($_POST['groupname']));
|
||||
$r = Model\Group::create(local_user(), $name);
|
||||
if ($r) {
|
||||
info(L10n::t('Group created.') . EOL);
|
||||
|
|
@ -62,7 +62,7 @@ function group_post(App $a) {
|
|||
return; // NOTREACHED
|
||||
}
|
||||
$group = $r[0];
|
||||
$groupname = Strings::removeTags(trim($_POST['groupname']));
|
||||
$groupname = Strings::escapeTags(trim($_POST['groupname']));
|
||||
if (strlen($groupname) && ($groupname != $group['name'])) {
|
||||
$r = q("UPDATE `group` SET `name` = '%s' WHERE `uid` = %d AND `id` = %d",
|
||||
DBA::escape($groupname),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue