Escape env value before passing it to system call

main
Gordon Franke 11 years ago
parent 11facc3f44
commit 202701c391

@ -132,7 +132,7 @@ EOT
{
// Open file in editor
if ($input->getOption('editor')) {
$editor = getenv('EDITOR');
$editor = escapeshellcmd(getenv('EDITOR'));
if (!$editor) {
if (defined('PHP_WINDOWS_VERSION_BUILD')) {
$editor = 'notepad';

Loading…
Cancel
Save