Update login.tpl.php

This commit is contained in:
Laurent Destailleur 2022-02-17 19:12:24 +01:00 committed by GitHub
parent aea9c2e427
commit 85327f28b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,7 +31,7 @@ if (empty($conf) || !is_object($conf)) {
}
// DDOS protection
$size = (int) !empty($_SERVER['CONTENT_LENGTH'])?$_SERVER['CONTENT_LENGTH']:0;
$size = (empty($_SERVER['CONTENT_LENGTH']) ? 0 : (int) $_SERVER['CONTENT_LENGTH']);
if ($size > 10000) {
http_response_code(413);
$langs->loadLangs(array("errors", "install"));