-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
URI malformed error during base64 encoding #530
Comments
Anyone have a idea how to fix this when this string is passed to `encodeUriComponent'? |
I can review today. |
@sanex3339 I can't understand how did you receive such a string, but you can try to strip invalid surrogate pairs by something like this:
|
I ran into a similar problem, and was getting When I hit the error, I just started commenting out likely suspects in the JavascriptObfusicator configuration. I found quickly that it was Cheers, and thanks for such an awesome tool! |
Hi. @cliffhall can you show a small example here https://obfuscator.io/ with enabled |
Unfortunately it’s a large app and I have no idea what specifically broke and caused the error. |
Here is how to reproduce:
It looks like the combination of "Split Strings Chunk Length" and "Base64" is not correctly handling multibyte characters if they occur on a chunk boundary. |
Ok. Will fix it using https://github.com/sallar/stringz |
Fixed in |
when encodeUriComponent
The text was updated successfully, but these errors were encountered: