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:
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, '&').replace(/</g, '<')
+ return str.replace(/&/g, '&').replace(/</g, '<').replace(/"/g, '"');
}
function relURI(term) {