FIX #yogosha9089
This commit is contained in:
parent
8c61a29051
commit
c097ee5331
@ -647,6 +647,11 @@ function checkPHPCode($phpfullcodestringold, $phpfullcodestring)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Check dynamic functions $xxx(
|
||||||
|
if (preg_match('/\$[a-z0-9_]+\(/ims', $phpfullcodestring)) {
|
||||||
|
$error++;
|
||||||
|
setEventMessages($langs->trans("DynamicPHPCodeContainsAForbiddenInstruction", '$...('), null, 'errors');
|
||||||
|
}
|
||||||
|
|
||||||
if (!$error && empty($user->rights->website->writephp)) {
|
if (!$error && empty($user->rights->website->writephp)) {
|
||||||
if ($phpfullcodestringold != $phpfullcodestring) {
|
if ($phpfullcodestringold != $phpfullcodestring) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user