You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is dangerous! Especially if you output any user-submitted data on your page
This symbol is preventing json from parsing. https://pastebin.com/0iWwevN2
Coming from serverside to clientside it will break the page. (tested in chrome and waterfox)
/** @type {import('./$types').PageServerLoad} */
export async function load({ }) {
let str = '�';
return ({ str });
}
+page.svelte
<script>
export let data;
</script>
<div>This page will only be rendered after F5</div>
Go to that page from another SvelteKit page <- this is important. You need to click on link pointing to that page.
What you get is SyntaxError: Unexpected token � in JSON at position 74
And then "500 Internal Error" instead of the page
(If you refresh the page, or navigate straight to it instead of a href there s no such bug)
Some motherfucker used that as a nickname on my site now no one can visit his page + every page containing his username also broke.
Sure this sounds emotional but IMHO this is dangerous
Logs
SyntaxError: Unexpected token � in JSON at position 74`
Describe the bug
This is dangerous! Especially if you output any user-submitted data on your page
This symbol is preventing json from parsing. https://pastebin.com/0iWwevN2
Coming from serverside to clientside it will break the page. (tested in chrome and waterfox)
(Just read the reproduction, I will try to explain it there)
I also created a repo for this https://github.com/xtance/sveltekit-problem
Reproduction
+page.server.ts
+page.svelte
What you get is
SyntaxError: Unexpected token � in JSON at position 74
And then "500 Internal Error" instead of the page
(If you refresh the page, or navigate straight to it instead of a href there s no such bug)
Some motherfucker used that as a nickname on my site now no one can visit his page + every page containing his username also broke.
Sure this sounds emotional but IMHO this is dangerous
Logs
System Info
Severity
blocking all usage of SvelteKit
Additional Information
Please fix and thanks in advance <3
The text was updated successfully, but these errors were encountered: