Merge branch 'ent-6691-cli-delete-group-doesnt-delete-group-name-blankspaces' into 'develop'

Fixed safe input on cli delete_group

See merge request artica/pandorafms!3597
This commit is contained in:
Daniel Rodriguez 2020-11-26 11:48:35 +01:00
commit 7cfa10dcbd
1 changed files with 1 additions and 1 deletions

View File

@ -5734,7 +5734,7 @@ sub cli_delete_group() {
my $group_id = get_group_id($dbh,$group_name);
exist_check($group_id, 'group name', $group_name);
$group_id = db_do ($dbh, 'DELETE FROM tgrupo WHERE nombre=?', $group_name);
$group_id = db_do ($dbh, 'DELETE FROM tgrupo WHERE nombre=?', safe_input($group_name));
if($group_id == -1) {
print_log "[ERROR] A problem has been ocurred deleting group '$group_name'\n\n";