Moodle

HTC files in packages are sending an improper content-type

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.5, 1.5.1, 1.5.2, 1.5.3, 1.5.4, 1.6, 1.6.1, 1.6.2, 1.6.3, 1.6.4, 1.7, 1.7.1, 1.7.2, 1.8, 2.0
  • Fix Version/s: 1.7.1, 1.8
  • Component/s: General, Resource
  • Labels:
    None
  • Affected Branches:
    MOODLE_15_STABLE, MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_20_STABLE
  • Fixed Branches:
    MOODLE_17_STABLE, MOODLE_18_STABLE

Description

HTC files in packages return the wrong content-type (document/unknown) even when the Apache web-server is set to serve the correct content-type, this means that packages that rely on the very popular HTC files for scripting will not run the script and will most likely fail to work.

I believe this is because of the way Moodle serves these files (they're proxied through a PHP). I believe the only change needed is to add .htc to filelib.php with the content-type of application/x-component.

Issue Links

Activity

Hide
Petr Škoda (skodak) added a comment -

I have added type text/x-component as recommended in http://support.microsoft.com/kb/306231

fixed in cvs, thanks for the report!

Show
Petr Škoda (skodak) added a comment - I have added type text/x-component as recommended in http://support.microsoft.com/kb/306231 fixed in cvs, thanks for the report!

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: