fixed #1802 fixed double escape for user creation, album creation and comments

This commit is contained in:
Matthieu Leproux
2022-11-22 16:01:32 +01:00
parent 6278be093a
commit 32ea1aef53
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -648,7 +648,7 @@ function ws_categories_add($params, &$service)
$options['comment'] = strip_tags($params['comment']);
}
$params['name'] = pwg_db_real_escape_string($params['name']);
$params['name'] = $params['name'];
$creation_output = create_virtual_category(
strip_tags($params['name']), // TODO do not strip tags if pwg_token is provided (and valid)
$params['parent'],