Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-3222

RequestUtil#escapeXml doesn't escape quotes

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: API 2.2.0
    • Fix Version/s: None
    • Component/s: API
    • Labels:

      Description

      According to http://www.w3.org/TR/xml/#syntax , there are 5 characters which should be escaped in XML.

      ResponseUtil#escapeXml(String input) only escapes brackets and ampersand. It should also escape single and double quotes.

        Attachments

        1. SLING-3222.patch
          0.7 kB
          Andrei Dulvac

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                andrei.dulvac Andrei Dulvac
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: