From 38def3bda5381259047f57065cad10b84a395d53 Mon Sep 17 00:00:00 2001 From: Davinci Date: Thu, 9 May 2024 12:53:45 +0200 Subject: [PATCH] fix: url encode the DM link payload --- src/utils/misc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/misc.ts b/src/utils/misc.ts index 4ec79e2..3a0c0cd 100644 --- a/src/utils/misc.ts +++ b/src/utils/misc.ts @@ -75,7 +75,7 @@ export const sendDM = async ( ? 'Your signature is requested on the document below!' : 'You have received a signed document.' - const decryptionUrl = `${window.location.origin}/#${appPrivateRoutes.decryptZip}?file=${fileUrl}&key=${encryptionKey}` + const decryptionUrl = `${window.location.origin}/#${appPrivateRoutes.decryptZip}?file=${encodeURIComponent(fileUrl)}&key=${encodeURIComponent(encryptionKey)}` const content = `${initialLine}\n\n${decryptionUrl}\n\nDirect download${fileUrl}`