1
0
Fork 0

Fix URL sanitisation regexp being too greedy

pull/2401/head
Chris Smith 2013-11-06 21:31:26 +00:00
parent d1c166eb26
commit d348dd44cd
1 changed files with 1 additions and 1 deletions

View File

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