Update SecurityTest.php (#36295)

* Update SecurityTest.php

* Update SecurityTest.php

* Update SecurityTest.php
This commit is contained in:
Frédéric FRANCE
2025-11-17 21:43:53 +01:00
committed by GitHub
parent e54cc9ab28
commit 3a3785c92d

View File

@@ -792,7 +792,7 @@ class SecurityTest extends CommonClassTest
print "result17 = ".$result."\n";
$this->assertTrue($result);
$result = dol_eval('1 && getDolGlobalInt("doesnotexist1") && $conf->global->MAIN_FEATURES_LEVEL', 1, 0); // Should return false and not a 'Bad string syntax to evaluate ...'
$result = dol_eval('1 && getDolGlobalInt("doesnotexist1") && getDolGlobalInt("MAIN_FEATURES_LEVEL")', 1, 0); // Should return false and not a 'Bad string syntax to evaluate ...'
print "result18 = ".$result."\n";
$this->assertFalse($result);