07-27-2016, 10:12 PM
(This post was last modified: 07-27-2016, 10:13 PM by John_Betong.
Edit Reason: removed extra clsoing bracket
)
OK, further experimentation and managed a very quick solution:
file: /CodeIgniter-3.1.0/system/libraries/Image_lib.php
file: /CodeIgniter-3.1.0/system/libraries/Image_lib.php
PHP Code:
// line: 891
// exec() might be disabled
if (function_usable('exec'))
{
// ADDED THIS LINE TO REMOVE SINGLE QUOTES
$cmd = str_replace("'", "", $cmd);
@exec($cmd, $output, $retval);
}