Small fix that prevents large files from hogging the session... Just this

should be good for most situations but 1.4.3 maintainers feel free to
do this more comprehensively as per the moodle.org discussion on it.  ;-)
This commit is contained in:
moodler
2005-01-13 07:13:43 +00:00
parent 1f08492ac1
commit 014f27e3ab
+2
View File
@@ -54,6 +54,8 @@
$filename = $fileargs[0]; // Only keep what's before the '?'
}
session_write_close();
if (file_exists($pathname) and !is_dir($pathname)) {
$lastmodified = filemtime($pathname);
$mimetype = mimeinfo("type", $filename);