Fix XML parsing error in report generation if HTTP URL has a space in it

This commit is contained in:
Dan Stillman 2009-10-29 07:35:29 +00:00
parent 455a1e65f1
commit e15acb3e7e

View file

@ -267,12 +267,12 @@ Zotero.Report = new function() {
}
// Append '&...' to the end
if (shortened) {
fieldText += "&<ZOTEROHELLIP/>";
fieldText += "&<ZOTEROHELLIP/>";
}
}
}
if (i == 'url' && firstSpace == -1) {
if (i == 'url') {
fieldText = '<a href="' + escapeXML(arr[i]) + '">'
+ escapeXML(fieldText) + '</a>';
}