-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This page crashed - URI malformed - When inserting win10 keyboard emoji on api field #260
Comments
Found the bug! This can be found in https://github.com/cloud-annotations/docusaurus-openapi/blob/main/packages/docusaurus-theme-openapi/src/theme/ApiDemoPanel/buildPostmanRequest.ts I can make a pull request fixing this |
Was too quick, this is not a valid unicode, i need to keep debugging |
Ok new insight, this is probebly related to onInput event. |
Good find! Thanks for looking into this :) |
This commit fixes an issue where utf-16 encoded surrogated pair could crash the page when inserted as input. The commit adds endsWithHalfSurrogatePair to check for half pair and safeEncodeURIComponent to ignore half surrogated pair before passing it to encodeURIComponent. Fixes cloud-annotations#260
This commit fixes an issue where utf-16 encoded surrogated pair could crash the page when inserted as input. The commit adds endsWithHalfSurrogatePair to check for half pair and safeEncodeURIComponent to ignore half surrogated pair before passing it to encodeURIComponent. Fixes #260
This was first detected in badges/shields#9519, Read more there
I can reproduce this on docusaurus-openapi.netlify.app
username
text input fieldThe text was updated successfully, but these errors were encountered: