Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-26294

send_file() not functional with content ranges

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.0.2
    • 2.0.1
    • Libraries
    • None
    • Linux
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE
    • Easy

      send_file() in lib/filelib.php when using content-ranges attempts to open the file except uses $filename instead of $path

      current:
      $handle = fopen($filename, 'rb');
      byteserving_send_file($handle, $mimetype, $ranges, $filesize);

      fix:
      $handle = fopen($path, 'rb');
      byteserving_send_file($handle, $mimetype, $ranges, $filesize);

            skodak Petr Skoda
            james.mitchell James Mitchell
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.