Merge remote-tracking branch 'origin/support/2.7' into support/2.7

This commit is contained in:
bruno-ds
2021-02-24 12:06:40 +01:00
2 changed files with 2 additions and 3 deletions

View File

@@ -562,8 +562,7 @@ class SetupUtils
clearstatcache();
if (!is_file($sGraphvizPath) || !is_executable($sGraphvizPath)) {
//N°3412 avoid shell injection
return new CheckResult(CheckResult::ERROR,
"$sGraphvizPath could not be executed: Please make sure it is installed and in the path");
return new CheckResult(CheckResult::WARNING, "$sGraphvizPath could not be executed: Please make sure it is installed and in the path");
}
if (!utils::IsWindowsEnvironment()){

View File

@@ -47,7 +47,7 @@ class SetupUtilsTest extends ItopTestCase
return [
"bash injection" => [
"touch /tmp/toto",
0,
1,
"could not be executed: Please make sure it is installed and in the path",
],
"command ok" => [