Debug v20

This commit is contained in:
Laurent Destailleur 2024-06-07 00:22:56 +02:00
parent 9153636e02
commit 7d46d4c173
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ function getHtmlOfLayout($name)
global $conf, $mysoc, $user, $langs;
$substitutionarray = array();
$substitutionarray = getCommonSubstitutionArray($langs, $substitutionarray);
$substitutionarray = getCommonSubstitutionArray($langs, 1);
// TODO Read template from a file "install/doctemplates/maillayout/xxx.html"

View File

@ -280,7 +280,7 @@ function analyseVarsForSqlAndScriptsInjection(&$var, $type, $stopcode = 1)
//$errormessage .= ' paramkey='.htmlentities($key, ENT_COMPAT, 'UTF-8'); // Disabled to avoid text injection
$errormessage2 = 'page='.htmlentities((empty($_SERVER["REQUEST_URI"]) ? '' : $_SERVER["REQUEST_URI"]), ENT_COMPAT, 'UTF-8');
$errormessage2 .= ' paramtype='.htmlentities($type, ENT_COMPAT, 'UTF-8');
$errormessage2 .= ' paramtype='.htmlentities((string) $type, ENT_COMPAT, 'UTF-8');
$errormessage2 .= ' paramkey='.htmlentities($key, ENT_COMPAT, 'UTF-8');
$errormessage2 .= ' paramvalue='.htmlentities($value, ENT_COMPAT, 'UTF-8');