Copied to clipboard

Flag this post as spam?

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


  • HC 2 posts 22 karma points
    Jun 30, 2010 @ 05:29
    HC
    0

    HTML encoding issue with DropDownList and standard prevalue type

    Steps to reproduce

    1. Add a form with a field type of DropDownList.

    2. Set the prevalue type to standard.

    3. Add an item with a special character such as & or <.

    Problem

    When viewing a page that contains the form, items in the DropDownList are double-encoded. E.g. "this & that" becomes "this &amp; that".

    Am I doing something wrong or is this a bug?

    I can work around it for now by creating a custom field type that escapes the prevalue.

  • Comment author was deleted

    Jun 30, 2010 @ 08:24

    Thanks for reporting this, it definitely sounds like a bug. I'll log this in our issue tracker and hopefully it will be gone in the next maintenance release.

    /tim

Please Sign in or register to post replies

Write your reply to:

Draft