Corrige un soucis de Overflow 32 bits

This commit is contained in:
voxan committed 2026-10-21 22:16:42 +02:00
1 parent 3f142a5388
commit 0c8d9cba6d
1 file changed
+4 -1
+4 -1
View File
@@ -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.';