www

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

commit 971fa7cf65a7994e2ecfe026da1740d25fbc0b25
parent c1c0b42a12fd057bd110e73de9c7898d0a3a7ea4
Author: Simon Kornblith <simon@simonster.com>
Date:   Thu,  1 May 2014 16:59:29 -0400

Merge pull request #477 from aurimasv/RDF-serialize-XML

[RDF] Encode > in content when serializing to XML
Diffstat:
Mchrome/content/zotero/xpcom/rdf/serialize.js | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/rdf/serialize.js b/chrome/content/zotero/xpcom/rdf/serialize.js @@ -678,7 +678,10 @@ $rdf.Serializer = function () { function escapeForXML(str) { if(typeof str == 'undefined') return '@@@undefined@@@@'; - return str.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/"/g, '&quot;'); + return str.replace(/&/g, '&amp;') + .replace(/</g, '&lt;') + .replace(/>/g, '&gt;') + .replace(/"/g, '&quot;'); } function relURI(term) {