www

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

commit 43670e3d4cc7107b94b1e4ef485386256706cdae
parent e01aa91e4930752ebd393cebf3d92656ba868be7
Author: Simon Kornblith <simon@simonster.com>
Date:   Sun, 12 Dec 2010 13:24:47 +0000

fix invalid XML on export due to quotation marks in URI


Diffstat:
Mchrome/content/zotero/xpcom/rdf/serialize.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/rdf/serialize.js b/chrome/content/zotero/xpcom/rdf/serialize.js @@ -566,7 +566,7 @@ __Serializer.prototype.statementsToXML = function(sts) { function escapeForXML(str) { if (typeof str == 'undefined') return '@@@undefined@@@@'; - return str.replace(/&/g, '&amp;').replace(/</g, '&lt;') + return str.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/"/g, '&quot;'); } function relURI(term) {