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

Improve the javascript mimetype detection in SkinAction#isJavascriptMimeType

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.1 RC1
    • Fix Version/s: 1.2 M1
    • Component/s: {Unused} Core
    • Labels:
      None
    • Similar issues:

      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

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

              Dates

              Created:
              Updated:
              Resolved: