N°3248 - code hardening

This commit is contained in:
Eric
2020-08-18 17:02:46 +02:00
parent 6176af089c
commit f74c78d61c
2 changed files with 11 additions and 2 deletions

View File

@@ -307,6 +307,7 @@ class utils
case 'context_param':
case 'parameter':
case 'field_name':
case 'transaction_id':
if (is_array($value))
{
$retValue = array();
@@ -2223,7 +2224,7 @@ class utils
* @param string $sPath for example '/var/www/html/itop/data/backups/manual/itop_27-2019-10-03_15_35.tar.gz'
* @param string $sBasePath for example '/var/www/html/itop/data/'
*
* @return bool false if path :
* @return bool|string false if path :
* * invalid
* * not allowed
* * not contained in base path