Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15368096
D18304.id44012.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D18304.id44012.diff
View Options
diff --git a/src/applications/repository/engine/PhabricatorRepositoryEngine.php b/src/applications/repository/engine/PhabricatorRepositoryEngine.php
--- a/src/applications/repository/engine/PhabricatorRepositoryEngine.php
+++ b/src/applications/repository/engine/PhabricatorRepositoryEngine.php
@@ -135,6 +135,11 @@
$exists = true;
}
+ // These URIs may have plaintext HTTP credentials. If they do, censor
+ // them for display. See T12945.
+ $display_remote = phutil_censor_credentials($remote_uri);
+ $display_expect = phutil_censor_credentials($expect_remote);
+
if (!$valid) {
if (!$exists) {
// If there's no "origin" remote, just create it regardless of how
@@ -172,8 +177,8 @@
'set the remote URI correctly. To avoid breaking anything, '.
'Phabricator will not automatically fix this.',
$repository->getLocalPath(),
- $remote_uri,
- $expect_remote);
+ $display_remote,
+ $display_expect);
throw new Exception($message);
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 12, 11:49 PM (2 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7350604
Default Alt Text
D18304.id44012.diff (1 KB)
Attached To
Mode
D18304: Censor credentials possibly present in Git remote URIs when pulls fail because of a URI mismatch
Attached
Detach File
Event Timeline
Log In to Comment