From 846dca9434b6688538b65f4099d497e3db642605 Mon Sep 17 00:00:00 2001 From: bergware Date: Wed, 4 Jun 2025 16:20:24 +0200 Subject: [PATCH] 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;