commit fc6121e4886640e8ce7b9a2a9b13fbd73ae12493 parent 6c6b9c8be246296abcc13f3c9daef5f380830c45 Author: Simon Kornblith <simon@simonster.com> Date: Wed, 22 Jun 2011 17:55:36 +0000 Fix a bug in serialize.js that was breaking Zotero startup in Nightly (blame Tim Berners-Lee) Diffstat:
| M | chrome/content/zotero/xpcom/rdf/serialize.js | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/chrome/content/zotero/xpcom/rdf/serialize.js b/chrome/content/zotero/xpcom/rdf/serialize.js @@ -470,9 +470,9 @@ function backslashUify(str) { for (var i=0; i<str.length; i++) { k = str.charCodeAt(i); if (k>65535) - res += '\U' + ('00000000'+n.toString(16)).slice(-8); // convert to upper? + res += '\\U' + ('00000000'+n.toString(16)).slice(-8); // convert to upper? else if (k>126) - res += '\u' + ('0000'+n.toString(16)).slice(-4); + res += '\\u' + ('0000'+n.toString(16)).slice(-4); else res += str[i]; }