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

Stop JSON data new_value being saved with slashes #404

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

Conversation

thetwopct
Copy link

I'm keeping track of a JSON array, and I noticed the new_value was being saved with slashes. This was then being output on the frontend.

2021-09-30-102627

I started messing with running new_value through a custom stripslashes function in blade files but seemed easier to just amend the package.

I used stripslashes on new_value in postSave() and it solves the problem. We've been running this for a while and haven't see anything else have issues because of this change.

2021-09-30-102920

I'm keeping track of a JSON array, and I noticed the new_value was being saved with slashes

This fixes that issue.
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