Skip to content
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

Fix: Page crash on half surrogate pair #261

Merged

Commits on Sep 7, 2023

  1. Fix: Page crash on half surrogate pair

    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
    jNullj committed Sep 7, 2023
    Configuration menu
    Copy the full SHA
    1073234 View commit details
    Browse the repository at this point in the history