CodeIgniter Forums
exec - Do i need to escape with escapeshellarg? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: exec - Do i need to escape with escapeshellarg? (/showthread.php?tid=62581)



exec - Do i need to escape with escapeshellarg? - agriz - 08-01-2015

Hi

I use the following method to get the form submitted values.


PHP Code:
$this->input->post(''

Do i need to use escapeshellarg to use the input value in exec()?
Because i am getting lot of single quotes in the result


RE: exec - Do i need to escape with escapeshellarg? - Narf - 08-01-2015

There's a big red warning on the PHP manual page for exec().