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

Remove invalid JSON character escaping #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fozcode
Copy link

@fozcode fozcode commented Nov 27, 2014

These 4 lines were added 4th April 2012, but escaping ' characters violates the JSON spec. If the server side sends a RAW containing an escaped ' character, the client side JSON.parse in apeCore.js throws an unhandled exception and breaks the APE application in the browser.

The original intention seems to have been a fix for the JSONP transport. So if this is still required it should only apply to JSONP and not globally.

Escaping single quotes violates the JSON spec
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

Successfully merging this pull request may close these issues.

1 participant