From c5e5ad50504647c640a042ae09cb3156ee4383df Mon Sep 17 00:00:00 2001 From: Hannah Ward Date: Thu, 21 Feb 2019 13:15:24 +0000 Subject: [PATCH] fix: URLJoin condition for double quotes --- pymisp/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymisp/api.py b/pymisp/api.py index 396d9fc..849ddf1 100644 --- a/pymisp/api.py +++ b/pymisp/api.py @@ -2046,7 +2046,7 @@ class PyMISP(object): if tags: if isinstance(tags, list): tags = "&&".join(tags) - url = urljoin(self.root_url, "/events/stix/download/{}/{}/{}/{}/{}".format( + url = urljoin(self.root_url, "events/stix/download/{}/{}/{}/{}/{}".format( event_id, with_attachments, tags, from_date, to_date)) logger.debug("Getting STIX event from %s", url) response = self._prepare_request('GET', url)