1
0

Use escapeshellarg() in jhead module to quote new file name

This commit is contained in:
Joe Sapp 2013-01-20 12:37:06 -04:00
parent f8fbedac07
commit c1edc681b7

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');
}