Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-3721

Dialog multiselect does not escape single quotes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Neutral
    • Resolution: Fixed
    • Affects Version/s: 4.4.3
    • Fix Version/s: 4.4.5
    • Component/s: gui
    • Labels:
      None
    • Magnolia Release:
      4.4.5

      Description

      Using dialog multiselect to manage a list of labels (no choose button) will fail if a label contains a single quote (') as it is not escaped in JSON string.

      Fixing this bug seems simple : just escape single quotes in method getJSON() of class DialogMultiSelect
      Line 199:

      value = value.replaceAll("\\'", "\\\\\\'");

        Attachments

          Activity

            People

            Assignee:
            dlipp Daniel Lipp
            Reporter:
            vgombert Vincent Gombert
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response: