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}`