fix problem saving attachments from attachment pane in folders that have a quote in the name r=cavin, sr=sspitzer, a=asa 130763

This commit is contained in:
bienvenu%netscape.com 2002-03-23 01:17:13 +00:00
Родитель cc4806c39b
Коммит b2c246f399
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -805,7 +805,9 @@ function handleAttachmentSelection(commandPrefix)
function generateCommandSuffixForAttachment(attachment)
{
return "('" + attachment.contentType + "', '" + attachment.url + "', '" + escape(attachment.displayName) + "', '" + attachment.uri + "')";
// replace ' in url with \' so we can eval() correctly
var attachmentUrl = attachment.url.replace(/'/g,"\\\'");
return "('" + attachment.contentType + "', '" + attachmentUrl + "', '" + escape(attachment.displayName) + "', '" + attachment.uri + "')";
}
function displayAttachmentsForExpandedView()