commit 23fa1241ab7565bb1994aea1f1c5bd6afa1270d0
parent a3810626213aab3d3df8ecfc0e8df4e3c10cef6c
Author: aurimasv <aurimas.dev@gmail.com>
Date: Fri, 27 Apr 2012 00:29:02 -0500
Simon: 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
@@ -660,7 +660,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) {