From d348dd44cda85dee2da36d620240674c35bd3a10 Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Wed, 6 Nov 2013 21:31:26 +0000 Subject: [PATCH] Fix URL sanitisation regexp being too greedy --- src/Composer/Downloader/GitDownloader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Downloader/GitDownloader.php b/src/Composer/Downloader/GitDownloader.php index 56b55629e..322d3f883 100644 --- a/src/Composer/Downloader/GitDownloader.php +++ b/src/Composer/Downloader/GitDownloader.php @@ -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)