From e71789886fd593142088b38ebca544dbaa05bd43 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 26 Jul 2010 17:23:37 +0200 Subject: change filesize checking to > instead of >= Signed-off-by: Florian Pritz --- system/application/controllers/file.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'system/application') diff --git a/system/application/controllers/file.php b/system/application/controllers/file.php index 2b2ffce6a..601cf80e1 100644 --- a/system/application/controllers/file.php +++ b/system/application/controllers/file.php @@ -82,7 +82,7 @@ class File extends Controller { $this->upload_form(); return; } - if(strlen($content) >= $this->config->item('upload_max_size')) { + if(strlen($content) > $this->config->item('upload_max_size')) { $this->load->view('file/header', $data); $this->load->view('file/too_big'); $this->load->view('file/footer'); @@ -116,7 +116,7 @@ class File extends Controller { return; } $filesize = filesize($_FILES['file']['tmp_name']); - if ($filesize >= $this->config->item('upload_max_size')) { + if ($filesize > $this->config->item('upload_max_size')) { $this->load->view('file/header', $data); $this->load->view('file/too_big'); $this->load->view('file/footer'); -- cgit v1.2.3-24-g4f1b