fix: url encode the DM link payload

This commit is contained in:
Davinci 2024-05-09 12:53:45 +02:00
parent a36ed8eab0
commit 38def3bda5

View File

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