1
0
Fork 0

Merge pull request #2569 from gimler/patch-1

Escape env value before passing it to system call
pull/2573/head
Jordi Boggiano 2014-01-09 05:05:49 -08:00
commit 42c496752a
1 changed files with 1 additions and 1 deletions

View File

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