2
0
forked from Wavyzz/dolibarr

Merge branch 'develop' into testsqlAndScript

This commit is contained in:
Laurent Destailleur
2018-09-15 17:01:23 +02:00
committed by GitHub
627 changed files with 42258 additions and 39017 deletions

View File

@@ -252,6 +252,7 @@ class CoreTest extends PHPUnit_Framework_TestCase
// This is code copied from main.inc.php !!!!!!!!!!!!!!!
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.NotCamelCaps
/**
* Security: SQL Injection and XSS Injection (scripts) protection (Filters on GET, POST, PHP_SELF).
*
@@ -261,6 +262,7 @@ class CoreTest extends PHPUnit_Framework_TestCase
*/
function testSqlAndScriptInject($val, $type)
{
// phpcs:enable
$inj = 0;
// For SQL Injection (only GET and POST are used to be included into bad escaped SQL requests)
if ($type != 2)