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:
reed%reedloden.com 2008-02-27 00:57:02 +00:00
Родитель cb6055487c
Коммит e78b61b53a
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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");
}