diff --git a/3.0/modules/jhead/helpers/jhead_event.php b/3.0/modules/jhead/helpers/jhead_event.php index 8d24e2f4..0a56defa 100644 --- a/3.0/modules/jhead/helpers/jhead_event.php +++ b/3.0/modules/jhead/helpers/jhead_event.php @@ -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'); }