Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Keith Petersen 67 posts 111 karma points
    Jan 31, 2011 @ 21:03
    Keith Petersen
    0

    Entering an ampersand in a text field is disastrous

    I've discovered that entering an ampersand in a text datatype (textstring, textbox multiple, simple editor) and hitting add or update causes the item being edited and all other items to disappear.

    If the other items have been saved, they will reappear, but only after refreshing the page.

    After an ampersand has been entered, the entire umbraco admin has to be refreshed, otherwise adding other items will fail in the same way, even without entering an ampersand.

    I tested several other special characters but didn't find any other problems. Maybe the package could escape ampersands somehow?

  • Keith Petersen 67 posts 111 karma points
    Jan 31, 2011 @ 22:08
    Keith Petersen
    0

    I should mention I'm using umbraco 4.5.2 and Firefox 3.6. (I tried to edit my comment, but got an xslt error from the forum code. Sheesh.)

  • Sascha Wolter 615 posts 1101 karma points
    Feb 01, 2011 @ 02:45
    Sascha Wolter
    0

    Hi Keith,

    this should be resolved with version 1.08, please have a look and let me know. :)

    I've added some html encoding when saving and reloading, which seems to do the trick quite nice.

    Sascha

  • Michael Rutherford 53 posts 73 karma points
    Feb 01, 2011 @ 04:50
    Michael Rutherford
    0

    It works for me in 1.09

  • Keith Petersen 67 posts 111 karma points
    Feb 01, 2011 @ 21:23
    Keith Petersen
    0

    Thanks for your quick resolution, Sascha. This bug is fixed, but I noticed a new problem in the Simple Editor datatype that might be related to the fix. After Simple Editor content with some markup is published, the markup's angle brackets are escaped when viewing it again in the admin. It's published correctly, but escaped when displayed in the admin afterwards.

  • Sascha Wolter 615 posts 1101 karma points
    Feb 01, 2011 @ 23:55
    Sascha Wolter
    0

    Oh yeah, that might be because I'm kind of double encoding it now... will take a look in a bit. ;)

  • Sascha Wolter 615 posts 1101 karma points
    Feb 25, 2011 @ 07:10
    Sascha Wolter
    0

    This should be resolved in the current version (1.1).

  • Chester Campbell 98 posts 209 karma points
    Dec 09, 2011 @ 21:39
    Chester Campbell
    0

    Hi,

    I've run across a problem that might be related to this. A textfield in an embedded content property will not take the string $1 .... as in "someone gave me $1 million". Upon clicking the "update" button the $1 is converted to

    >

    . I replaced the dollar sign with the equivalent ascii code

    $

    and while that is rendered into a dollar sign in the textfield on the rendered page it comes out as the raw ascii code. I'm using an xslt macro to display the embedded content items and using the disable-output-escaping flag makes no difference to the output.

  • Hakan 1 post 21 karma points
    Jan 07, 2013 @ 15:35
    Hakan
    0

    Hi,

    when I put <sometext> into a text field then it is rendered as an html item in Content Editor. So it breaks the "Edit" and "Delete" functionalities because of the js code:

Please Sign in or register to post replies

Write your reply to:

Draft