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

Util.fixEncoding(ParameterMap) should ignore case when comparing encodings

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Engine 2.0.6
    • Engine 2.1.0
    • Engine
    • None

    Description

      when posting content with parameter charset set to "utf-8", but the Content-Type header is set to "application/x-www-form-urlencoded; charset=UTF-8", Util.fixEncoding(ParameterMap) will reencode the content, which breaks most special characters.

      since there seems to be no accord on whether encodings should be submitted upper or lower case, sling should simply ignore the case when comparing them.

      Attachments

        1. Util.patch
          0.6 kB
          Raphael Wegmueller

        Activity

          People

            fmeschbe Felix Meschberger
            rofe Raphael Wegmueller
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: