From 014f27e3abfa1a14d7df3ff72e172be89daf4db9 Mon Sep 17 00:00:00 2001 From: moodler Date: Thu, 13 Jan 2005 07:13:43 +0000 Subject: [PATCH] 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. ;-) --- file.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/file.php b/file.php index 9cce2637048..b46bf4d5852 100644 --- a/file.php +++ b/file.php @@ -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);