Bug 76799. Unescape the filename if it comes from a URL. r=brade, sr=jag
git-svn-id: svn://10.0.0.236/trunk@126396 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -649,7 +649,7 @@ function getDefaultFileName(aDefaultFileName, aNameFromHeaders, aDocumentURI, aD
|
||||
var url = aDocumentURI.QueryInterface(Components.interfaces.nsIURL);
|
||||
if (url.fileName != "")
|
||||
// 2) Use the actual file name, if present
|
||||
return url.fileName;
|
||||
return unescape(url.fileName);
|
||||
} catch (e) {
|
||||
// This is something like a wyciwyg:, data:, and so forth
|
||||
// URI... no usable filename here.
|
||||
|
||||
Reference in New Issue
Block a user