encode search query before searching

This commit is contained in:
keyan 2022-05-18 16:15:44 -05:00
parent 9287e7b93c
commit f6ceda79d6
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ export default function Search ({ sub }) {
if (sub) {
prefix = `/~${sub}`
}
router.push(prefix + `/search?q=${q}`)
router.push(prefix + `/search?q=${encodeURIComponent(q)}`)
}
}}
>