From 2cfb6ff64ed69cdd8212a1c5270ee7fdb0b72440 Mon Sep 17 00:00:00 2001 From: Tanguy Le Faucheur Date: Mon, 27 Nov 2023 11:48:57 +0100 Subject: [PATCH] Add key to sharing url --- app.php | 2 +- templates/signature.html.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app.php b/app.php index 3bb77f6..51358e7 100644 --- a/app.php +++ b/app.php @@ -248,7 +248,7 @@ $f3->route('POST /share', $symmetricKey = ""; if (isset($_COOKIE[$hash])) { - $symmetricKey = "#sk:" . $_COOKIE[$hash]; + $symmetricKey = "#k:" . $_COOKIE[$hash]; $encryptor = new CryptographyClass($_COOKIE[$hash], $f3->get('PDF_STORAGE_PATH').$hash); if (!$encryptor->encrypt()) { shell_exec("rm -rf $sharingFolder"); diff --git a/templates/signature.html.php b/templates/signature.html.php index 4a75ee2..a8a57bc 100644 --- a/templates/signature.html.php +++ b/templates/signature.html.php @@ -224,7 +224,7 @@ - +