summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--system/libraries/Upload.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Upload.php b/system/libraries/Upload.php
index 564e29937..4cea9cd71 100644
--- a/system/libraries/Upload.php
+++ b/system/libraries/Upload.php
@@ -709,7 +709,7 @@ class CI_Upload {
return FALSE;
}
- if ( ! $fp = @fopen($file, 'rb'))
+ if ( ! $fp = @fopen($file, 'r+b'))
{
return FALSE;
}