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

RequestUtil#escapeXml doesn't escape quotes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • API 2.2.0
    • None
    • API

    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

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

              Dates

                Created:
                Updated:
                Resolved: