fix: t-001 a t-005 correctif

This commit is contained in:
2026-03-17 15:33:36 +01:00
parent 13457ceb5a
commit bdb65a09ff
6 changed files with 46 additions and 29 deletions

View File

@@ -7,7 +7,7 @@ import {
import {process} from "std-env";
const MAX_FILES_PER_FOLDER = Number(process.env.BACKUPS_MAX_FILES)
const MAX_FILES_PER_FOLDER = Math.max(1, Number(process.env.BACKUPS_MAX_FILES) || 50)
const isSafeFolder = (value: string) => /^[a-zA-Z0-9._-]+$/.test(value)