Corrige un soucis de Overflow 32 bits
This commit is contained in:
1 parent
3f142a5388
commit
0c8d9cba6d
1 file changed
+4
-1
+4
-1
@@ -54,7 +54,10 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
} else {
|
||||
$label = trim((string)($_POST['label'] ?? ''));
|
||||
$note = trim((string)($_POST['note'] ?? ''));
|
||||
$sizeBytes = filter_input(INPUT_POST, 'size_bytes', FILTER_VALIDATE_INT) ?: null;
|
||||
|
||||
// Correction : Accepte les grands nombres (BigInt) pour les gros backups
|
||||
$rawSize = $_POST['size_bytes'] ?? '';
|
||||
$sizeBytes = (ctype_digit((string)$rawSize)) ? $rawSize : null;
|
||||
|
||||
if ($label === '') {
|
||||
$feedback = 'Le libelle de la sauvegarde est obligatoire.';
|
||||
|
||||
Reference in new issue
Block a user