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 | 20324ef5ae58e1e0d420ef596735eea47a56e6b7 (patch) | |
tree | bd2732334edea18d4dc6960a9760a42fa93a1d3a | |
parent | c53ba5ab6ca1e7c75d9de850b87def4e89a2464f (diff) | |
download | uxp-20324ef5ae58e1e0d420ef596735eea47a56e6b7.tar.gz |
Drop invisible characters from downloads filename.
-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 2b7af30dec..736fb7dfc5 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; |