Skip to content

Commit

Permalink
Improve Parameter Encoding in MacroMenuRenderer (OFBIZ-13162)
Browse files Browse the repository at this point in the history
  • Loading branch information
dixitdeepak committed Oct 28, 2024
1 parent f5e55c4 commit 761fb67
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,12 @@ public void renderLink(Appendable writer, Map<String, Object> context, MenuLink
targetParameters.append(parameter.getKey());
targetParameters.append("'");
targetParameters.append(",'value':'");
targetParameters.append(parameter.getValue());
UtilCodec.SimpleEncoder simpleEncoder = (UtilCodec.SimpleEncoder) context.get("simpleEncoder");
if (simpleEncoder != null) {
targetParameters.append(simpleEncoder.encode(parameter.getValue()));
} else {
targetParameters.append(parameter.getValue());
}
targetParameters.append("'}");
}
targetParameters.append("]");
Expand Down

0 comments on commit 761fb67

Please sign in to comment.