1
0

Merge pull request #137 from sappjw/master

Use escapeshellarg() in jhead module to quote new file name
This commit is contained in:
Bharat Mediratta 2013-01-20 11:16:39 -08:00
commit d5ea23f230

View File

@ -39,7 +39,7 @@ class jhead_event_Core {
}
// Invoke jhead
if ($error = exec(escapeshellcmd($binary).' -q -autorot '.$item->file_path())) {
if ($error = exec(escapeshellcmd($binary).' -q -autorot '.escapeshellarg($item->file_path()))) {
// @todo throw an exception ?
Kohana::log('error', 'Error during execution of jhead');
}