bugfix: unicode mailto: addresses

This commit is contained in:
the-djmaze 2023-02-23 18:43:27 +01:00
parent d92f25973b
commit a86c5ba639

View file

@ -155,7 +155,7 @@ mailToHelper = mailToUrl => {
mailToUrl = mailToUrl.slice(7).split('?');
const
email = mailToUrl[0],
email = decodeURIComponent(mailToUrl[0]),
params = new URLSearchParams(mailToUrl[1]),
to = params.get('to'),
toEmailModel = value => EmailCollectionModel.fromString(value);