Skip to content

Commit

Permalink
🐛 fix special characters not correctly encoded (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
songquanpeng committed Dec 19, 2022
1 parent 2222e54 commit 4d3fda9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/public/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
input.addEventListener("keyup", function (event) {
if (event.key === 'Enter') {
let value = input.value.trim();
value = encodeURIComponent(value);
if (value === "") {
location.href = "/";
}else {
Expand Down

0 comments on commit 4d3fda9

Please sign in to comment.