encode user input in inbox author search

This commit is contained in:
Andreas Nedbal 2022-04-12 22:07:38 +02:00 committed by Andreas Nedbal
parent cf275d60ec
commit 1fd06fd404
1 changed files with 1 additions and 1 deletions

View File

@ -2,5 +2,5 @@ export function authorSearchHandler(event: Event): void {
event.preventDefault();
const author = document.querySelector<HTMLInputElement>('#author')?.value;
window.location.href = `/inbox/${author}`;
window.location.href = `/inbox/${encodeURIComponent(author)}`;
}