FIX avoid php warning
This commit is contained in:
parent
5236372921
commit
3f1e4e27ff
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ if (empty($conf) || !is_object($conf)) {
|
|||
}
|
||||
|
||||
// DDOS protection
|
||||
$size = (int) $_SERVER['CONTENT_LENGTH'];
|
||||
$size = (int) ($_SERVER['CONTENT_LENGTH'] ?? 0);
|
||||
if ($size > 10000) {
|
||||
$langs->loadLangs(array("errors", "install"));
|
||||
httponly_accessforbidden('<center>'.$langs->trans("ErrorRequestTooLarge").'<br><a href="'.DOL_URL_ROOT.'">'.$langs->trans("ClickHereToGoToApp").'</a></center>', 413, 1);
|
||||
|
|
|
|||
Loading…
Reference in a new issue