Fixes #1470 and makes sure the requested XML url is clean.

This commit is contained in:
Ben Parr 2009-05-18 15:48:45 +00:00
parent 3ca64f746a
commit 8437a55e3e

View File

@ -551,11 +551,16 @@ function ChromeExtensionHandler() {
var d = ''; var d = '';
//passes information (type,ids, dateType) for when the XML is created //passes information (type,ids, dateType) for when the XML is created
if(!type || (type != 'collection' && type != 'search')) { if(!type || (type != 'collection' && type != 'search')) {
d += 'library?t=' + dateType; d += 'library';
} }
else { else {
d += type + '/' + id + '?t=' + dateType; d += type + '/' + id;
} }
if(dateType) {
d += '?t=' + dateType;
}
content = content.replace(theTemp, theTemp + d); content = content.replace(theTemp, theTemp + d);
@ -576,7 +581,8 @@ function ChromeExtensionHandler() {
break; break;
case 'search': case 'search':
var s = new Zotero.Search(ids); var s = new Zotero.Search();
s.id = ids;
var ids = s.search(); var ids = s.search();
break; break;