Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-1692

Improve the javascript mimetype detection in SkinAction#isJavascriptMimeType

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Trivial
    • 1.2 M1
    • 1.1 RC1
    • {Unused} Core
    • None

    Description

      The official mimetype for javascript is text/ecmascript, which currently isn't checked.

      Also, make the checks case insensitive, as some (bad) containers could serve .js files as "text/JavaScript".

      Attachments

        Activity

          People

            sdumitriu Sergiu Dumitriu
            sdumitriu Sergiu Dumitriu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: