This is an automated email from the ASF dual-hosted git repository.
pgil 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 5cbbe63414 Fixed: fix wrong property reference in warning log.
5cbbe63414 is described below
commit 5cbbe6341404f4d22e4935f4ceea26aa648a3a11
Author: Gil Portenseigne <[email protected]>
AuthorDate: Tue Jan 21 11:27:28 2025 +0100
Fixed: fix wrong property reference in warning log.
---
framework/base/src/main/java/org/apache/ofbiz/base/util/ScriptUtil.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/framework/base/src/main/java/org/apache/ofbiz/base/util/ScriptUtil.java
b/framework/base/src/main/java/org/apache/ofbiz/base/util/ScriptUtil.java
index 88d1b07cfa..d83bf98619 100644
--- a/framework/base/src/main/java/org/apache/ofbiz/base/util/ScriptUtil.java
+++ b/framework/base/src/main/java/org/apache/ofbiz/base/util/ScriptUtil.java
@@ -421,7 +421,7 @@ public final class ScriptUtil {
if (!currentScriptAlreadyAllowed) {
if (!checkIfScriptIsSafe(script)) {
Debug.logWarning(String.format("Tried to execute unauthorized
script \n **** \n%s\n **** "
- + "\nif it's safe script you can add the
following hash to security.allowedScriptlets: %s",
+ + "\nif it's safe script you can add the
following hash to security.allowedScriptletHashes: %s",
script, scriptHash), MODULE);
return false;
}