diff --git a/templates/home.html b/templates/home.html index ad554bc..c73ab38 100644 --- a/templates/home.html +++ b/templates/home.html @@ -309,7 +309,7 @@

Latest Reviews

const date = new Date(); date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); const expires = "expires=" + date.toUTCString(); - document.cookie = name + "=" + value + ";" + expires + ";path=/;domain=.wiilink.ca;Secure"; + document.cookie = name + "=" + encodeURIComponent(value) + ";" + expires + ";path=/;domain=.wiilink.ca;Secure"; } setCookie("wiilink_user", JSON.stringify({ username: "{{ user_info.username }}", pfp: "{{ user_info.profile_picture }}" }), 7);