From 3f9c4f255bc14c589061d348b1e87a7ab6ca9b01 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Fri, 31 Aug 2012 11:53:25 +0200 Subject: Fix missing require_session call Trigger: echo test | curl -F "file=@-;filename=stdin" Signed-off-by: Florian Pritz --- application/controllers/file.php | 1 + 1 file changed, 1 insertion(+) (limited to 'application') diff --git a/application/controllers/file.php b/application/controllers/file.php index 90c73d844..f900419cb 100644 --- a/application/controllers/file.php +++ b/application/controllers/file.php @@ -218,6 +218,7 @@ class File extends CI_Controller { $redirect = false; if (!$this->muser->logged_in()) { + $this->muser->require_session(); // keep the upload but require the user to login $this->session->set_userdata("last_upload", array( "id" => $id, -- cgit v1.2.3-24-g4f1b