From 049cead55013fd221557abc32c5af9a5f24f1818 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 9 Jul 2008 18:05:53 +0000 Subject: [PATCH] Invalid characters after the first one in a string weren't being replaced --- 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 04ecd6ade..4c533c03f 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]/, ''); + return str.replace(/[\u0000-\u0008\u000b\u000c\u000e-\u001f\ud800-\udfff\ufffe\uffff]/g, ''); } }