Page MenuHomePhabricator

D7631.id17224.diff

D7631.id17224.diff

diff --git a/src/applications/repository/storage/PhabricatorRepository.php b/src/applications/repository/storage/PhabricatorRepository.php
--- a/src/applications/repository/storage/PhabricatorRepository.php
+++ b/src/applications/repository/storage/PhabricatorRepository.php
@@ -580,14 +580,10 @@
// Make sure we don't leak anything if this repo is using HTTP Basic Auth
// with the credentials in the URI or something zany like that.
- if ($uri instanceof PhutilGitURI) {
- if (!$this->getDetail('show-user', false)) {
- $uri->setUser(null);
- }
- } else {
- if (!$this->getDetail('show-user', false)) {
- $uri->setUser(null);
- }
+ // If repository is not accessed over SSH we remove both username and
+ // password.
+ if (!($uri instanceof PhutilGitURI)) {
+ $uri->setUser(null);
$uri->setPass(null);
}

File Metadata

Mime Type
text/x-diff
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/qu/vs/3w7b46y4i7lnp7ny
Default Alt Text
D7631.id17224.diff (887 B)

Event Timeline