commit 8437a55e3e3d694072dd6e7806e7b96f31c42e33
parent 3ca64f746a13975701d67a0502343fd1989ecaa7
Author: Ben Parr <cheeseisgood626@gmail.com>
Date: Mon, 18 May 2009 15:48:45 +0000
Fixes #1470 and makes sure the requested XML url is clean.
Diffstat:
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/components/zotero-protocol-handler.js b/components/zotero-protocol-handler.js
@@ -551,11 +551,16 @@ function ChromeExtensionHandler() {
var d = '';
//passes information (type,ids, dateType) for when the XML is created
if(!type || (type != 'collection' && type != 'search')) {
- d += 'library?t=' + dateType;
+ d += 'library';
}
else {
- d += type + '/' + id + '?t=' + dateType;
+ d += type + '/' + id;
}
+
+ if(dateType) {
+ d += '?t=' + dateType;
+ }
+
content = content.replace(theTemp, theTemp + d);
@@ -576,7 +581,8 @@ function ChromeExtensionHandler() {
break;
case 'search':
- var s = new Zotero.Search(ids);
+ var s = new Zotero.Search();
+ s.id = ids;
var ids = s.search();
break;