Fix URL sanitisation regexp being too greedy
parent
d1c166eb26
commit
d348dd44cd
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue