summaryrefslogtreecommitdiffstats
path: root/system/application/controllers
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xssn.at>2010-07-26 17:23:37 +0200
committerFlorian Pritz <bluewind@xssn.at>2010-07-26 17:23:37 +0200
commite71789886fd593142088b38ebca544dbaa05bd43 (patch)
treed3a8bf665c5a17081c1bdbab5ce292dd2ac79ef9 /system/application/controllers
parent7f105bc4f5d2cf6632da3d3575e1d8e583067cc8 (diff)
change filesize checking to > instead of >=
Signed-off-by: Florian Pritz <bluewind@xssn.at>
Diffstat (limited to 'system/application/controllers')
-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');