Merge pull request #2401 from cs278/fix-url-sanitisation
Fix URL sanitisation regexp being too greedypull/2405/head
commit
65d516e427
|
@ -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