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
Someone visited my Next.js website with wrong emoji as url, and made me face this error. I could reproduce by just passing one emoji like this.
Should I sanitize params before, or do you think this awesome library is responsible for this?
exportconstgetServerSideProps: GetServerSideProps=async(context,): Promise<GetServerSidePropsResult<Props>>=>{
const path=context.query.pathasstringRoutes.event_path(path)// it works usually if no emojiRoutes.event_path("💗")// reproducing the error}
The text was updated successfully, but these errors were encountered:
Someone visited my Next.js website with wrong emoji as url, and made me face this error. I could reproduce by just passing one emoji like this.
Should I sanitize params before, or do you think this awesome library is responsible for this?
The text was updated successfully, but these errors were encountered: