escapeshellarg() has been disabled for security reasons

后端 未结 4 967
谎友^
谎友^ 2020-11-30 13:58

When I want to upload anything in any form I see the Warning: escapeshellarg() has been disabled for security reasons message on my site. What can I do to f

4条回答
  •  无人及你
    2020-11-30 14:41

    Try

    $cmd = 'file --brief --mime ' . @escapeshellarg($file['tmp_name']) . ' 2>&1';
    

    Open Upload.php file from system/libraries folder and put @ in front of escapeshellarg($file['tmp_name']) at line 1066 and second thing upload this file under application/libraries folder that will be better, other wise no problem, you can replace system's Upload.php file.

提交回复
热议问题