bug #23894 --> be sure to escape the display name for the attachment b4

inserting it into the open attachment method.
r=sspitzer
This commit is contained in:
mscott%netscape.com 2000-01-15 01:45:12 +00:00
parent dfef0be8c9
commit 393090d0a8

View File

@ -169,7 +169,9 @@ var messageHeaderSink = {
handleAttachment: function(url, displayName, uri)
{
var commandString = "OpenAttachURL('" + url + "', '" + displayName + "', '" + uri + "')";
// be sure to escape the display name before we insert it into the
// method
var commandString = "OpenAttachURL('" + url + "', '" + escape(displayName) + "', '" + uri + "')";
AddAttachmentToMenu(displayName, commandString);
}
};