commit | 7cf682abf46bcaa112b63c500a884ba25c0dd8b3 | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@devilix.net> | Thu Mar 13 14:55:45 2014 +0200 |
committer | Andrey Andreev <narf@devilix.net> | Thu Mar 13 14:55:45 2014 +0200 |
tree | ec4283976055d986add2da7b0dad16c1e75dcba5 | |
parent | d2e3a6fbf820b819bd7b2abc4794766f4c1d4e1a [diff] [blame] |
Partially revert PR #2190 The core shouldn't depend on constants that are not defined by itself
diff --git a/system/libraries/Zip.php b/system/libraries/Zip.php index 43abfba..c634b11 100644 --- a/system/libraries/Zip.php +++ b/system/libraries/Zip.php
@@ -398,7 +398,7 @@ */ public function archive($filepath) { - if ( ! ($fp = @fopen($filepath, FOPEN_WRITE_CREATE_DESTRUCTIVE))) + if ( ! ($fp = @fopen($filepath, 'w+b'))) { return FALSE; }