Project

General

Profile

Bug #21360 » 0012341_v2.patch

Administrator Admin, 2009-10-26 12:47

View differences:

t3lib/class.t3lib_stdgraphic.php (working copy)
* @return string $inputName escaped as needed
*/
protected function wrapFileName($inputName) {
return escapeshellarg($inputName);
// if safe_mode enabled, escapeshellcmd() is run on exec argument
return ini_get('safe_mode') ? '\'' . $inputName . '\'' : escapeshellarg($inputName);
}
t3lib/thumbs.php (working copy)
* @return string $inputName escaped as needed
*/
protected function wrapFileName($inputName) {
return escapeshellarg($inputName);
// if safe_mode enabled, escapeshellcmd() is run on exec argument
return ini_get('safe_mode') ? '\'' . $inputName . '\'' : escapeshellarg($inputName);
}
}
(2-2/5)