diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-05-15 14:00:38 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-05-15 14:00:38 +0200 |
commit | ca6136ffb67b9f4119cc65d1fb0ce388d4fece7c (patch) | |
tree | bd2732334edea18d4dc6960a9760a42fa93a1d3a /toolkit/content/contentAreaUtils.js | |
parent | 1ab70167349766ee1648bb9ebc1c58f9c4e73035 (diff) | |
download | UXP-ca6136ffb67b9f4119cc65d1fb0ce388d4fece7c.tar UXP-ca6136ffb67b9f4119cc65d1fb0ce388d4fece7c.tar.gz UXP-ca6136ffb67b9f4119cc65d1fb0ce388d4fece7c.tar.lz UXP-ca6136ffb67b9f4119cc65d1fb0ce388d4fece7c.tar.xz UXP-ca6136ffb67b9f4119cc65d1fb0ce388d4fece7c.zip |
Drop invisible characters from downloads filename.
Diffstat (limited to 'toolkit/content/contentAreaUtils.js')
-rw-r--r-- | toolkit/content/contentAreaUtils.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/toolkit/content/contentAreaUtils.js b/toolkit/content/contentAreaUtils.js index 2b7af30de..736fb7dfc 100644 --- a/toolkit/content/contentAreaUtils.js +++ b/toolkit/content/contentAreaUtils.js @@ -1108,6 +1108,7 @@ function getDefaultFileName(aDefaultFileName, aURI, aDocument, function validateFileName(aFileName) { + aFileName = aFileName.replace(/[\u200e\u200f\u202a-\u202e]/g, ""); var re = /[\/]+/g; if (navigator.appVersion.indexOf("Windows") != -1) { re = /[\\\/\|]+/g; |