mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-05 16:15:54 +00:00
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:
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());
|
||||
|
||||
Reference in new issue
Block a user