зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
cc4806c39b
Коммит
b2c246f399
|
@ -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()
|
||||
|
|
Загрузка…
Ссылка в новой задаче