1
0
Fork 0

Merge pull request #2401 from cs278/fix-url-sanitisation

Fix URL sanitisation regexp being too greedy
pull/2405/head
Jordi Boggiano 2013-11-06 14:12:45 -08:00
commit 65d516e427
1 changed files with 1 additions and 1 deletions

View File

@ -384,7 +384,7 @@ class GitDownloader extends VcsDownloader
protected function sanitizeUrl($message) protected function sanitizeUrl($message)
{ {
return preg_replace('{://(.+?):.+?@}', '://$1:***@', $message); return preg_replace('{://([^@]+?):.+?@}', '://$1:***@', $message);
} }
protected function setPushUrl(PackageInterface $package, $path) protected function setPushUrl(PackageInterface $package, $path)