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

Dialog multiselect does not escape single quotes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 4.4.5
    • 4.4.3
    • gui
    • None

      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("\\'", "\\\\\\'");

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD