fixed a possible security issue (SECURITY-3)

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@32394 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2010-06-30 15:31:02 +00:00
1 parent f756ddae48
commit 66b9d9baaf
1 file changed
+1
@@ -120,6 +120,7 @@ public final class ProxyConfiguration implements Saveable {
Authenticator.setDefault(new Authenticator() {
@Override
public PasswordAuthentication getPasswordAuthentication() {
if (getRequestorType()!=RequestorType.PROXY) return null;
ProxyConfiguration p = Hudson.getInstance().proxy;
return new PasswordAuthentication(p.getUserName(),
p.getPassword().toCharArray());