commit | f62747451d1f040b36db7611255d7c1b3cdffcdf | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@devilix.net> | Thu Feb 20 18:05:58 2014 +0200 |
committer | Andrey Andreev <narf@devilix.net> | Thu Feb 20 18:05:58 2014 +0200 |
tree | bdbf06d942fb0a19454d987de0d89f142709013c | |
parent | bb3edf12d0ca82c62f7b7d570108375ec4379749 [diff] [blame] |
Don't use error suppression on ini_get() either
diff --git a/system/libraries/Upload.php b/system/libraries/Upload.php index 983d832..4939b15 100644 --- a/system/libraries/Upload.php +++ b/system/libraries/Upload.php
@@ -1255,7 +1255,7 @@ } } - if ((bool) @ini_get('safe_mode') === FALSE && function_usable('shell_exec')) + if ( ! ini_get('safe_mode') && function_usable('shell_exec')) { $mime = @shell_exec($cmd); if (strlen($mime) > 0)