Skip to content

Commit

Permalink
URL encode search queries (#624)
Browse files Browse the repository at this point in the history
* URL encode

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
theosanderson and pre-commit-ci[bot] authored Oct 12, 2024
1 parent 9b87162 commit 7546544
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions taxonium_component/src/hooks/useServerBackend.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ function useServerBackend(backend_url, sid, url_on_fail) {
let url =
backend_url +
"/search/?json=" +
JSON.stringify(singleSearch) +
encodeURIComponent(JSON.stringify(singleSearch)) +
"&sid=" +
sid;
encodeURIComponent(sid);

const xType =
boundsForQueries && boundsForQueries.xType
Expand Down

0 comments on commit 7546544

Please sign in to comment.