Improved: Allow Unsafe Event Message (OFBIZ-12147)

Allow application to define event messages that contain javascripts, via request attribute "_UNSAFE_EVENT_MESSAGE_"

Thanks Jacques for review
This commit is contained in:
James Yong
2021-01-21 20:46:06 +08:00
parent bee1b11831
commit 1bfd3c5fb0
2 changed files with 14 additions and 6 deletions
@@ -749,7 +749,7 @@ public class RequestHandler {
String key = entry.getKey();
if ("_ERROR_MESSAGE_LIST_".equals(key) || "_ERROR_MESSAGE_MAP_".equals(key) || "_ERROR_MESSAGE_".equals(key)
|| "_WARNING_MESSAGE_LIST_".equals(key) || "_WARNING_MESSAGE_".equals(key)
|| "_EVENT_MESSAGE_LIST_".equals(key) || "_EVENT_MESSAGE_".equals(key)) {
|| "_EVENT_MESSAGE_LIST_".equals(key) || "_EVENT_MESSAGE_".equals(key) || "_UNSAFE_EVENT_MESSAGE_".equals(key)) {
request.setAttribute(key, entry.getValue());
}
}