зеркало из https://github.com/mozilla/pjs.git
Bug 411572 - "Unnamed attachments reveal full local paths when forwarded inline or edited as new" [p=rsx11m.pub@gmail.com r=Standard8 sr=bienvenu]
This commit is contained in:
Родитель
cb6055487c
Коммит
e78b61b53a
|
@ -2638,7 +2638,7 @@ function AddAttachment(attachment)
|
|||
else {
|
||||
// for security reasons, don't allow mail protocol uris to leak out
|
||||
// we don't want to reveal the .slt path (for mailbox://), or the username or hostname
|
||||
var mailProtocol = /^mailbox:|^imap:|^s?news:/i;
|
||||
var mailProtocol = /^file:|^mailbox:|^imap:|^s?news:/i;
|
||||
if (mailProtocol.test(attachment.name))
|
||||
attachment.name = sComposeMsgsBundle.getString("partAttachmentSafeName");
|
||||
}
|
||||
|
|
|
@ -2583,7 +2583,7 @@ function AddAttachment(attachment)
|
|||
else {
|
||||
// for security reasons, don't allow mail protocol uris to leak out
|
||||
// we don't want to reveal the .slt path (for mailbox://), or the username or hostname
|
||||
var mailProtocol = /^mailbox:|^imap:|^s?news:/i;
|
||||
var mailProtocol = /^file:|^mailbox:|^imap:|^s?news:/i;
|
||||
if (mailProtocol.test(attachment.name))
|
||||
attachment.name = sComposeMsgsBundle.getString("partAttachmentSafeName");
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче