Merge pull request #2569 from gimler/patch-1

Escape env value before passing it to system call
main
Jordi Boggiano 11 years ago
commit 42c496752a

@ -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