mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-19 08:38:45 +02:00
N°3412 - Command Injection vulnerability in the Setup Wizard - do not use escapeshellcmd before execution in Windows envt
This commit is contained in:
@@ -30,7 +30,7 @@ class SetupUtilsTest extends ItopTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider CheckGravitzProvider
|
||||
* @dataProvider CheckGravitProvider
|
||||
*/
|
||||
public function testCheckGravitz($sScriptPath, $iSeverity, $sLabel){
|
||||
/** @var \CheckResult $oCheck */
|
||||
@@ -39,7 +39,7 @@ class SetupUtilsTest extends ItopTestCase
|
||||
$this->assertContains($sLabel, $oCheck->sLabel);
|
||||
}
|
||||
|
||||
public function CheckGravitzProvider(){
|
||||
public function CheckGravitProvider(){
|
||||
if (substr(PHP_OS,0,3) === 'WIN'){
|
||||
return [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user