commit | 5932a7354bf46fb0a86794af37da42f715c355bf | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@devilix.net> | Fri Sep 13 14:45:53 2013 +0300 |
committer | Andrey Andreev <narf@devilix.net> | Fri Sep 13 14:45:53 2013 +0300 |
tree | 550d77b948a23c6ff06f0bd74e1dedb887898d8f | |
parent | 838c9a96f645aac24daa31285efa1051535c4219 [diff] [blame] |
Improvements to safe_mode detection (it doesn't exist in PHP 5.4)
diff --git a/system/libraries/Upload.php b/system/libraries/Upload.php index 15eb74b..0609738 100644 --- a/system/libraries/Upload.php +++ b/system/libraries/Upload.php
@@ -1245,7 +1245,7 @@ } } - if ( (bool) @ini_get('safe_mode') === FALSE && function_usable('shell_exec')) + if ((bool) @ini_get('safe_mode') === FALSE && function_usable('shell_exec')) { $mime = @shell_exec($cmd); if (strlen($mime) > 0)