commit cf93bd70424e8b5eec314aaf11f8a7f5e97f4554 parent 049cead55013fd221557abc32c5af9a5f24f1818 Author: Dan Stillman <dstillman@zotero.org> Date: Wed, 9 Jul 2008 18:49:43 +0000 Replace invalid characters with a dashed square Unicode character instead of stripping Diffstat:
| M | 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 @@ -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'); } }