Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
Added encoding to fallback search
Browse files Browse the repository at this point in the history
  • Loading branch information
mstier-nflx committed Jan 22, 2019
1 parent 0cf047b commit 7f9b4a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/api/wfe.js
Expand Up @@ -78,7 +78,7 @@ router.get('/search-by-task/:taskId', async (req, res, next) => {

let query = req.query.q || '';
const url =
baseURL2 + 'search-by-tasks?size=100&sort=startTime:DESC&freeText=' + freeText.join(' AND ') + '&start=' + start;
baseURL2 + 'search-by-tasks?size=100&sort=startTime:DESC&freeText=' + encodeURIComponent(freeText.join(' AND ')) + '&start=' + start;
const result = await http.get(url, req.token);

const hits = result.results;
Expand Down

0 comments on commit 7f9b4a7

Please sign in to comment.