You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2020/04/27 12:29:22 UTC
[ofbiz-framework] 02/02: Improved: Prevent recurring errors block
due to generateTokenForNonAjax
This is an automated email from the ASF dual-hosted git repository.
jleroux pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
commit e8e9db5b1a0d54a94d5c47ff7e0cff1c2e94ee57
Author: Jacques Le Roux <ja...@les7arts.com>
AuthorDate: Mon Apr 27 14:29:14 2020 +0200
Improved: Prevent recurring errors block due to generateTokenForNonAjax
(OFBIZ-11609)
Fixes check style. I removed a space after a cast. That's how I wrote it so
far and that was wrong. BTW I did not invent it, our code is riddled of it:/
https://www.oracle.com/technetwork/java/javase/documentation/codeconventions-141388.html
---
.../security/src/main/java/org/apache/ofbiz/security/CsrfUtil.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/framework/security/src/main/java/org/apache/ofbiz/security/CsrfUtil.java b/framework/security/src/main/java/org/apache/ofbiz/security/CsrfUtil.java
index 8371df1..a682b8c 100644
--- a/framework/security/src/main/java/org/apache/ofbiz/security/CsrfUtil.java
+++ b/framework/security/src/main/java/org/apache/ofbiz/security/CsrfUtil.java
@@ -70,7 +70,7 @@ public final class CsrfUtil {
NoCsrfDefenseStrategy.class.getCanonicalName());
Class<?> c = Class.forName(className);
strategyCanonicalName = c.getCanonicalName();
- setStrategy((ICsrfDefenseStrategy)c.newInstance());
+ setStrategy((ICsrfDefenseStrategy) c.newInstance());
} catch (Exception e) {
Debug.logError(e, MODULE);
setStrategy(new NoCsrfDefenseStrategy());