www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 0d343458a35332c3319134adca024645e9af50f0
parent 002dd66e0366ced5a1690e4ec87aa74a848eba32
Author: Dan Stillman <dstillman@zotero.org>
Date:   Wed, 23 Mar 2016 03:23:13 -0400

Normalize Unicode in new filenames

Diffstat:
Mchrome/content/zotero/xpcom/file.js | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/chrome/content/zotero/xpcom/file.js b/chrome/content/zotero/xpcom/file.js @@ -779,6 +779,9 @@ Zotero.File = new function(){ if (!skipXML) { // Strip characters not valid in XML, since they won't sync and they're probably unwanted fileName = fileName.replace(/[\u0000-\u0008\u000b\u000c\u000e-\u001f\ud800-\udfff\ufffe\uffff]/g, ''); + + // Normalize to NFC + fileName = fileName.normalize(); } // Don't allow hidden files fileName = fileName.replace(/^\./, '');