Skip to content
Permalink
Browse files Browse the repository at this point in the history
Merge pull request from GHSA-q6m7-h6rj-5wmw
  • Loading branch information
cedric-anne committed Jun 20, 2022
1 parent f2225db commit 0b805ca
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions inc/deploypackage.class.php
Expand Up @@ -35,6 +35,8 @@
die("Sorry. You can't access directly to this file");
}

use Glpi\Toolbox\Sanitizer;

/**
* Manage the deploy packages.
*/
Expand Down Expand Up @@ -1889,11 +1891,11 @@ public function deployToComputer($computers_id, $packages_id, $users_id)

//Add the new task
$input = [
'name' => '[deploy on demand] ' . $this->fields['name'],
'entities_id' => $computer->fields['entities_id'],
'reprepare_if_successful' => 0,
'is_deploy_on_demand' => 1,
'is_active' => 1,
'name' => '[deploy on demand] ' . Sanitizer::dbEscape($this->fields['name']),
'entities_id' => $computer->fields['entities_id'],
'reprepare_if_successful' => 0,
'is_deploy_on_demand' => 1,
'is_active' => 1,
];
$tasks_id = $pfTask->add($input);

Expand Down

0 comments on commit 0b805ca

Please sign in to comment.