summaryrefslogtreecommitdiffstats
path: root/system/application
diff options
context:
space:
mode:
Diffstat (limited to 'system/application')
-rw-r--r--system/application/controllers/file.php4
1 files changed, 2 insertions, 2 deletions
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');