Fixed search removing symbols #321

This commit is contained in:
ManeraKai 2022-06-10 19:35:10 +03:00
parent 59cb76d80d
commit 931ad2256d
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
1 changed files with 1 additions and 1 deletions

View File

@ -324,7 +324,7 @@ function redirect(url) {
url.hostname.includes('search.libredirect.invalid')
) &&
url.searchParams.has('q')
) searchQuery = `?q=${url.searchParams.get('q')}`;
) searchQuery = `?q=${encodeURIComponent(url.searchParams.get('q'))}`;
if (url.hostname.includes('yandex') && url.searchParams.has('text')) searchQuery = `?q=${url.searchParams.get('text')}`;
return `${randomInstance}${path}${searchQuery}`;