From e3a3413a42dc52a7d0b33b4434c3ef872858e75a Mon Sep 17 00:00:00 2001 From: "bzbarsky%mit.edu" Date: Tue, 6 Aug 2002 01:17:55 +0000 Subject: [PATCH] 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 --- mozilla/xpfe/communicator/resources/content/contentAreaUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/xpfe/communicator/resources/content/contentAreaUtils.js b/mozilla/xpfe/communicator/resources/content/contentAreaUtils.js index 6347bf6a77d..d253b9c6b6d 100644 --- a/mozilla/xpfe/communicator/resources/content/contentAreaUtils.js +++ b/mozilla/xpfe/communicator/resources/content/contentAreaUtils.js @@ -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.