Project

General

Profile

Bug #21165 » 12090_followup_41.diff

Administrator Admin, 2009-10-22 13:30

View differences:

t3lib/thumbs.php (working copy)
}
/**
* Wrapping the input filename in double-quotes
* Escapes a file name so it can safely be used on the command line.
*
* @param string $inputName filename to safeguard, must not be empty
*
* @param string Input filename
* @return string The output wrapped in "" (if there are spaces in the filepath)
* @access private
* @return string $inputName escaped as needed
*
* @access protected
*/
function wrapFileName($inputName) {
if (strstr($inputName,' ')) {
$inputName='"'.$inputName.'"';
}
return $inputName;
function wrapFileName($inputName) {
return escapeshellarg($inputName);
}
}
(7-7/7)