mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-02-22 13:53:14 +08:00
Bugfix: mail?to= should be encodeURIComponent()
This commit is contained in:
parent
f559b3c87e
commit
d2c9e860cb
1 changed files with 3 additions and 5 deletions
|
@ -365,13 +365,11 @@ class EmailModel {
|
|||
? '<a href="mailto:' +
|
||||
encodeHtml(this.email) +
|
||||
'?to=' +
|
||||
encodeHtml('"' + this.name + '" <' + this.email + '>') +
|
||||
encodeURIComponent('"' + this.name + '" <' + this.email + '>') +
|
||||
'" target="_blank" tabindex="-1">' +
|
||||
encodeHtml(this.name) +
|
||||
'</a>'
|
||||
: useEncodeHtml
|
||||
? encodeHtml(this.name)
|
||||
: this.name;
|
||||
: (useEncodeHtml ? encodeHtml(this.name) : this.name);
|
||||
// result = wrapWithLink ? '<a href="mailto:' + encodeHtml('"' + this.name + '" <' + this.email + '>') +
|
||||
// '" target="_blank" tabindex="-1">' + encodeHtml(this.name) + '</a>' : (useEncodeHtml ? encodeHtml(this.name) : this.name);
|
||||
} else {
|
||||
|
@ -383,7 +381,7 @@ class EmailModel {
|
|||
'<a href="mailto:' +
|
||||
encodeHtml(this.email) +
|
||||
'?to=' +
|
||||
encodeHtml('"' + this.name + '" <' + this.email + '>') +
|
||||
encodeURIComponent('"' + this.name + '" <' + this.email + '>') +
|
||||
'" target="_blank" tabindex="-1">' +
|
||||
encodeHtml(result) +
|
||||
'</a>' +
|
||||
|
|
Loading…
Reference in a new issue