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

Library escapes forward slashes on string serialization, doesn't un-escape on deserialization, causing runtime error #41

Open
codemonster32i opened this issue May 20, 2024 · 0 comments

Comments

@codemonster32i
Copy link

codemonster32i commented May 20, 2024

This library appears to escape forward slashes, which is fine, but it does not unescape them when parsing. This causes an error where the library sees the backslash escape, but doesn't find a forward slash in its is_control_character() function. This appears to cause it to go into escape mode because of the backflash, but having not found a control character it then suffers from error when parsing a string. Adding the forward slash to the switch statement in is_control_character() fixes the issue.

@codemonster32i codemonster32i changed the title is_control_character() needs forward slash added (escapes forward slashes on serialization, doesn't un-escape on deserialization) Library escapes forward slashes on serialization, doesn't un-escape on deserialization, causing runtime error May 20, 2024
@codemonster32i codemonster32i changed the title Library escapes forward slashes on serialization, doesn't un-escape on deserialization, causing runtime error Library escapes forward slashes on string serialization, doesn't un-escape on deserialization, causing runtime error May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant