Open danielfowler opened 5 years ago
I'm troubleshooting a bunch of errors right now, so please excuse my sudden run on issue reporting.
Update: it seems all leading special characters in text inputs aren't being escaped on save. I'm seeing issues with strings that contain apostrophes and/or quotation marks start with special characters.
A couple examples:
hair: "dirty" blonde
acting_experience: "Annie Jr." in 2018
tech_experience: `None
twitter: @danielfowler
Describe the bug I have a Twitter handle field input for users and some are including the @ symbol at the start of their input. Workshop isn't wrapping the resultant string in quotes, which is throwing a ParseException upon trying to load the value in template.
To Reproduce Steps to reproduce the behavior:
<input name="twitter"/>
@statamic
Expected behavior String value would save as
twitter: "@statamic"
and page would loadScreenshots If applicable, add screenshots to help explain your problem.
Environment details (please complete the following information):
Additional context Technically this is happening through the Profiler add-on, but it's using the Workshop engine to save values to user files.
Error stack trace: