← Back to team overview

mahara-contributors team mailing list archive

[Bug 1564682] [NEW] Show the right header if byte range not correct

 

Public bug reported:

In htdocs/lib/file.php

we have a comment: Invalid byte-range ==> ignore header when the byte
range is not valid

We should instead be setting:
header('HTTP/1.1 416 Requested Range Not Satisfiable');

See: http://www.media-division.com/the-right-way-to-handle-file-
downloads-in-php/

** Affects: mahara
     Importance: Low
         Status: Confirmed

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1564682

Title:
  Show the right header if byte range not correct

Status in Mahara:
  Confirmed

Bug description:
  In htdocs/lib/file.php

  we have a comment: Invalid byte-range ==> ignore header when the byte
  range is not valid

  We should instead be setting:
  header('HTTP/1.1 416 Requested Range Not Satisfiable');

  See: http://www.media-division.com/the-right-way-to-handle-file-
  downloads-in-php/

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1564682/+subscriptions