This commit is contained in:
Frédéric FRANCE 2024-12-18 18:06:08 +01:00
parent 6145b2acef
commit 55fe6f9caa
No known key found for this signature in database
GPG Key ID: C06E4A9656127239

View File

@ -783,7 +783,7 @@ function checkPHPCode(&$phpfullcodestringold, &$phpfullcodestring)
if (!$error) {
if (preg_match('/\*\/\s*\(/ims', $phpfullcodestring)) {
$error++;
setEventMessages($langs->trans("DynamicPHPCodeContainsAForbiddenInstruction", $phpfullcodestring), null, 'errors');
setEventMessages($langs->trans("DynamicPHPCodeContainsAForbiddenInstruction", "exec/*...*/ ('ls')"), null, 'errors');
}
}