From 723f4d5a9df254960ece2fd3419e0bc34a30f144 Mon Sep 17 00:00:00 2001 From: Dirk Heilig Date: Fri, 15 Sep 2023 19:05:21 +0200 Subject: [PATCH] do not clear data on empty input --- htdocs/index.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htdocs/index.php b/htdocs/index.php index cf14b04..5190e13 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -19,6 +19,9 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") { $resticData = file_get_contents("php://input"); $resticData = explode("\n", $resticData); + if (count($resticData) <= 1) { + exit(); + } $backups = []; foreach ($resticData as $snapshot) { if (