[ofbiz-framework] branch trunk updated: Improved: Prevent recurring errors block due to generateTokenForNonAjax

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ofbiz-framework] branch trunk updated: Improved: Prevent recurring errors block due to generateTokenForNonAjax

jleroux@apache.org
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


The following commit(s) were added to refs/heads/trunk by this push:
     new cdb40c3  Improved: Prevent recurring errors block due to generateTokenForNonAjax
cdb40c3 is described below

commit cdb40c3d31955119a86b60fad6d3b308cd3fd104
Author: Jacques Le Roux <[hidden email]>
AuthorDate: Sun Apr 26 14:21:59 2020 +0200

    Improved: Prevent recurring errors block due to generateTokenForNonAjax
   
    (OFBIZ-11609)
   
    Fixes check style issues
---
 .../security/src/main/java/org/apache/ofbiz/security/CsrfUtil.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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 d5b0a22..06be440 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
@@ -200,8 +200,8 @@ public final class CsrfUtil {
         }
         if (requestMap == null) {
             if (!"org.apache.ofbiz.security.NoCsrfDefenseStrategy".equals(getStrategy().toString())) {
-            Debug.logWarning("Cannot find the corresponding request map for path: " + pathOrRequestUri, MODULE);
-        }
+                Debug.logWarning("Cannot find the corresponding request map for path: " + pathOrRequestUri, MODULE);
+            }
         }
         String tokenValue = "";
         if (requestMap != null && requestMap.securityCsrfToken) {