Skip to content
Browse files

MDL-26294 fix byteserving regression

Credit goes to James Mitchell.
  • Loading branch information...
1 parent d911c72 commit dd3b7e7dfcf1d467c0a497ff79b17589fd726cad @skodak skodak committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/filelib.php
View
2 lib/filelib.php
@@ -1704,7 +1704,7 @@ function send_file($path, $filename, $lifetime = 'default' , $filter=0, $pathiss
$ranges = false;
}
if ($ranges) {
- $handle = fopen($filename, 'rb');
+ $handle = fopen($path, 'rb');
byteserving_send_file($handle, $mimetype, $ranges, $filesize);
}
}

0 comments on commit dd3b7e7

Please sign in to comment.
Something went wrong with that request. Please try again.