From cf93bd70424e8b5eec314aaf11f8a7f5e97f4554 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 9 Jul 2008 18:49:43 +0000 Subject: [PATCH] Replace invalid characters with a dashed square Unicode character instead of stripping --- chrome/content/zotero/xpcom/sync.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/sync.js b/chrome/content/zotero/xpcom/sync.js index 4c533c03f..ecb81194c 100644 --- a/chrome/content/zotero/xpcom/sync.js +++ b/chrome/content/zotero/xpcom/sync.js @@ -2291,6 +2291,6 @@ Zotero.Sync.Server.Data = new function() { function _xmlize(str) { - return str.replace(/[\u0000-\u0008\u000b\u000c\u000e-\u001f\ud800-\udfff\ufffe\uffff]/g, ''); + return str.replace(/[\u0000-\u0008\u000b\u000c\u000e-\u001f\ud800-\udfff\ufffe\uffff]/g, '\u2B1A'); } }