1
0
Fork 0

Fix ProcessExecutor url escaping

pull/5300/merge
Jordi Boggiano 2016-05-09 10:31:03 +01:00
parent 9cb6c2322a
commit 046c2d64a5
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ class ProcessExecutor
public function execute($command, &$output = null, $cwd = null)
{
if ($this->io && $this->io->isDebug()) {
$safeCommand = preg_replace('{(://)(?P<user>[^:/\s]+):(?P<password>[^@\s/]+)}i', function ($m) {
$safeCommand = preg_replace_callback('{(://)(?P<user>[^:/\s]+):(?P<password>[^@\s/]+)}i', function ($m) {
if (preg_match('{^[a-f0-9]{12,}$}', $m[1])) {
return '://***:***';
}