mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-10 18:46:41 +00:00
Apply suggestions from code review
Co-Authored-By: Jesse Glick <jglick@cloudbees.com>
This commit is contained in:
1 parent
107c8575a4
commit
3bc83e3503
1 file changed
+1
-3
@@ -56,7 +56,6 @@ public class GlobalCrumbIssuerConfiguration extends GlobalConfiguration {
|
||||
if (json.has("crumbIssuer")) {
|
||||
j.setCrumbIssuer(req.bindJSON(CrumbIssuer.class, json.getJSONObject("crumbIssuer")));
|
||||
} else {
|
||||
// set the default crumb issuer
|
||||
j.setCrumbIssuer(createDefaultCrumbIssuer());
|
||||
}
|
||||
|
||||
@@ -73,10 +72,9 @@ public class GlobalCrumbIssuerConfiguration extends GlobalConfiguration {
|
||||
if (DISABLE_CSRF_PROTECTION) {
|
||||
return null;
|
||||
}
|
||||
return new DefaultCrumbIssuer(SystemProperties.getBoolean(Jenkins.class.getName() + ".crumbIssuerProxyCompatibility",false));
|
||||
return new DefaultCrumbIssuer(SystemProperties.getBoolean(Jenkins.class.getName() + ".crumbIssuerProxyCompatibility", false));
|
||||
}
|
||||
|
||||
@Restricted(NoExternalUse.class)
|
||||
public static /* non-final */ boolean DISABLE_CSRF_PROTECTION = SystemProperties.getBoolean(GlobalCrumbIssuerConfiguration.class.getName() + ".DISABLE_CSRF_PROTECTION");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user