Avoid password leak from URIIsh
commit5f06f169e52e325132edfceaf1866692281bc07c
authorShawn O. Pearce <spearce@spearce.org>
Fri, 11 Jul 2008 03:20:04 +0000 (11 03:20 +0000)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Fri, 11 Jul 2008 10:14:07 +0000 (11 12:14 +0200)
treebfada83386dd36f6b3fb79d121a2862db0656c60
parent3b06b99fd01ae64b0a7ff3758732ba66a6c385c5
Avoid password leak from URIIsh

The toString() method is commonly used for dumping information. We
never ever want to use toString when the password is needed. By
masking out the password we avoid unintentional password leaks.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit.test/tst/org/spearce/jgit/transport/URIishTest.java
org.spearce.jgit/src/org/spearce/jgit/transport/RemoteConfig.java
org.spearce.jgit/src/org/spearce/jgit/transport/URIish.java