bug #40192 [Console] fix QuestionHelper::getHiddenResponse() not working with space in project directory name (Yendric)
This PR was submitted for the 5.2 branch but it was squashed and merged into the 4.4 branch instead.
Discussion
----------
[Console] fix QuestionHelper::getHiddenResponse() not working with space in project directory name
| Q | A
| ------------- | ---
| Branch? | 5.2
| Bug fix? | yes
| New feature? | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets | Fix #40190 <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License | MIT
| Doc PR | symfony/symfony-docs#... <!-- required for new features -->
Fixes #40190 to allow spaces in project directory name.
Commits
-------
0e421004eb
[Console] fix QuestionHelper::getHiddenResponse() not working with space in project directory name
This commit is contained in:
commit
9230f69106
@ -412,7 +412,7 @@ class QuestionHelper extends Helper
|
|||||||
$exe = $tmpExe;
|
$exe = $tmpExe;
|
||||||
}
|
}
|
||||||
|
|
||||||
$sExec = shell_exec($exe);
|
$sExec = shell_exec('"'.$exe.'"');
|
||||||
$value = $trimmable ? rtrim($sExec) : $sExec;
|
$value = $trimmable ? rtrim($sExec) : $sExec;
|
||||||
$output->writeln('');
|
$output->writeln('');
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user