encode user input in inbox author search
This commit is contained in:
parent
cf275d60ec
commit
1fd06fd404
|
@ -2,5 +2,5 @@ export function authorSearchHandler(event: Event): void {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
||||||
const author = document.querySelector<HTMLInputElement>('#author')?.value;
|
const author = document.querySelector<HTMLInputElement>('#author')?.value;
|
||||||
window.location.href = `/inbox/${author}`;
|
window.location.href = `/inbox/${encodeURIComponent(author)}`;
|
||||||
}
|
}
|
Loading…
Reference in New Issue