You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 26, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 26, 2022. It is now read-only.
Data-Type "Notes" YSODs when value contains an apostrophe #29
Just had this beat me on the head again, so wanted to log it for future reference (or for nostalgia, whichever comes first :-)
Also couldn't find any closed issues about it (even though I've hit this more than once), so here it is:
If an apostrophe ( ' ) is used in the Notes data-type's value, it doesn't save, and it throws a nasty YSOD in the back-office - which means we can't write help text like this:
You can't use this because of XYZ
But have to resort to:
You can not use this because of XYZ
I bet it's JSON-related, since XML loves apostrophes so much it even has a special entity just for them :-)
Activity
leekelleher commentedon Feb 27, 2015
Thanks for the note (sic) @greystate!
There was this only issue about it: http://ucomponents.codeplex.com/workitem/14820
Do you get the "potentially dangerous Request.Form value was detected" error? I'm guessing not.
greystate commentedon Feb 27, 2015
Ah - that's the one - I knew I'd seen something about it before.
Yes, I get that exact error. And FWIW, I'm living fine with the workaround - just wanted to log it so my brain remembers 'till next time :)
Also: Not losing any data either, since the back button takes me back to the second before I hit "Save". 👍