URI encode querry on server.

pull/2775/head
Flo2410 4 months ago
parent bb4d603a88
commit 0a71d557c0
No known key found for this signature in database
GPG Key ID: 8ECB00AC5216DC7F

@ -19,5 +19,5 @@ export default async function handler(req, res) {
return res.json([query, []]); // Responde with the same array format but with no suggestions.
}
return res.send(await cachedFetch(`${provider.suggestionUrl}${query}`, 5));
return res.send(await cachedFetch(`${provider.suggestionUrl}${encodeURIComponent(query)}`, 5));
}

Loading…
Cancel
Save