Fix backtourl

This commit is contained in:
Laurent Destailleur
2021-03-13 12:33:26 +01:00
parent 0bd7d28fd9
commit ff2f93815f
2 changed files with 10 additions and 3 deletions

View File

@@ -184,6 +184,12 @@ class SecurityTest extends PHPUnit\Framework\TestCase
// Should be OK
$expectedresult=0;
/*
$test = '';
$result=testSqlAndScriptInject($test, 0);
$this->assertGreaterThanOrEqual(0, $result, 'Error on testSqlAndScriptInject kkk');
*/
$_SERVER["PHP_SELF"]='/DIR WITH SPACE/htdocs/admin/index.php?mainmenu=home&leftmenu=setup&username=weservices';
$result=testSqlAndScriptInject($_SERVER["PHP_SELF"], 2);
$this->assertEquals($expectedresult, $result, 'Error on testSqlAndScriptInject expected 0a');