Skip to content
This repository was archived by the owner on Feb 26, 2022. It is now read-only.
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

Open

Description

@greystate

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

  1. leekelleher commented on Feb 27, 2015

    @leekelleher
    Contributor

    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.

  2. greystate commented on Feb 27, 2015

    @greystate
    ContributorAuthor

    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". 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions