From 161d8524cf1c37d3ae0a4ae3442ed03fbca2e48c Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Thu, 21 Sep 2017 11:20:49 +0200 Subject: Close session in long running methods These do not write to the session but may run for some time. There is no need to keep the session locked while they perform their work. Signed-off-by: Florian Pritz --- application/controllers/Main.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application/controllers/Main.php b/application/controllers/Main.php index 279d34520..31100f3d7 100644 --- a/application/controllers/Main.php +++ b/application/controllers/Main.php @@ -74,6 +74,7 @@ class Main extends MY_Controller { function _download() { + session_write_close(); $id = $this->uri->segment(1); $lexer = urldecode($this->uri->segment(2)); @@ -469,6 +470,7 @@ class Main extends MY_Controller { function thumbnail() { + session_write_close(); $id = $this->uri->segment(3); if (!$this->mfile->valid_id($id)) { -- cgit v1.2.3-24-g4f1b