Skip to content

Commit

Permalink
Merge pull request #4 from edeca/hotfix/encoding
Browse files Browse the repository at this point in the history
Percent encode forward slashes in queries
  • Loading branch information
edeca authored Dec 4, 2020
2 parents 96bf1e6 + feb20ab commit bc14631
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hydrocarbon/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ def _extract_query(self, query, report):
)
search = search[2:]

qry["search_query"] = "q={}".format(urllib.parse.quote(search))
qry["search_query"] = "q={}".format(urllib.parse.quote(search, safe=""))

except KeyError:
self._log.error("Did not find required query data, please see the template")
Expand Down

0 comments on commit bc14631

Please sign in to comment.