mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 00:17:03 +03: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:' +
|
? '<a href="mailto:' +
|
||||||
encodeHtml(this.email) +
|
encodeHtml(this.email) +
|
||||||
'?to=' +
|
'?to=' +
|
||||||
encodeHtml('"' + this.name + '" <' + this.email + '>') +
|
encodeURIComponent('"' + this.name + '" <' + this.email + '>') +
|
||||||
'" target="_blank" tabindex="-1">' +
|
'" target="_blank" tabindex="-1">' +
|
||||||
encodeHtml(this.name) +
|
encodeHtml(this.name) +
|
||||||
'</a>'
|
'</a>'
|
||||||
: useEncodeHtml
|
: (useEncodeHtml ? encodeHtml(this.name) : this.name);
|
||||||
? encodeHtml(this.name)
|
|
||||||
: this.name;
|
|
||||||
// result = wrapWithLink ? '<a href="mailto:' + encodeHtml('"' + this.name + '" <' + this.email + '>') +
|
// result = wrapWithLink ? '<a href="mailto:' + encodeHtml('"' + this.name + '" <' + this.email + '>') +
|
||||||
// '" target="_blank" tabindex="-1">' + encodeHtml(this.name) + '</a>' : (useEncodeHtml ? encodeHtml(this.name) : this.name);
|
// '" target="_blank" tabindex="-1">' + encodeHtml(this.name) + '</a>' : (useEncodeHtml ? encodeHtml(this.name) : this.name);
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -383,7 +381,7 @@ class EmailModel {
|
||||||
'<a href="mailto:' +
|
'<a href="mailto:' +
|
||||||
encodeHtml(this.email) +
|
encodeHtml(this.email) +
|
||||||
'?to=' +
|
'?to=' +
|
||||||
encodeHtml('"' + this.name + '" <' + this.email + '>') +
|
encodeURIComponent('"' + this.name + '" <' + this.email + '>') +
|
||||||
'" target="_blank" tabindex="-1">' +
|
'" target="_blank" tabindex="-1">' +
|
||||||
encodeHtml(result) +
|
encodeHtml(result) +
|
||||||
'</a>' +
|
'</a>' +
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue