From adce4957aaa4a82ac4695ffce5ec41d5201f35a1 Mon Sep 17 00:00:00 2001 From: ljm42 Date: Wed, 4 Jun 2025 08:09:29 -0700 Subject: [PATCH] Backport: Encryption: fix regression error - keyfile not deleted --- emhttp/plugins/dynamix/include/KeyUpload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emhttp/plugins/dynamix/include/KeyUpload.php b/emhttp/plugins/dynamix/include/KeyUpload.php index dd2bce1cf..75846a9a0 100644 --- a/emhttp/plugins/dynamix/include/KeyUpload.php +++ b/emhttp/plugins/dynamix/include/KeyUpload.php @@ -18,7 +18,7 @@ $file = $_POST['file'] ?? false; if ($file) { file_put_contents($luks, base64_decode(explode(';base64,',$file)[1])); -} elseif ($text && file_exists($luks)) { +} elseif (file_exists($luks)) { unlink($luks); } $save = false;