mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 21:42:27 +00:00
[SECURITY-245] Add explanation comment
This commit is contained in:
1 parent
559566b1ac
commit
281cd6c69a
1 file changed
+1
@@ -95,6 +95,7 @@ public class DefaultCrumbIssuer extends CrumbIssuer {
|
||||
if (request instanceof HttpServletRequest) {
|
||||
String newCrumb = issueCrumb(request, salt);
|
||||
if ((newCrumb != null) && (crumb != null)) {
|
||||
// String.equals() is not constant-time, but this is
|
||||
return MessageDigest.isEqual(newCrumb.getBytes(), crumb.getBytes());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user