mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-03 23:52:24 +01:00
Update SecurityTest.php (#36295)
* Update SecurityTest.php * Update SecurityTest.php * Update SecurityTest.php
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user