Skip to content
This repository has been archived by the owner on May 9, 2020. It is now read-only.

Commit

Permalink
Merged from trunk r1309993:
Browse files Browse the repository at this point in the history
Prevent user submitted data from being streamed directly back to the browser when the content map-key is not found.  Log a warning instead.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/branches/release10.04@1310013 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
lektran committed Apr 5, 2012
1 parent 907627e commit 99b9d73
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -355,7 +355,7 @@ public static void renderSubContentAsText(LocalDispatcher dispatcher, Delegator

if (subContent == null) {
//throw new GeneralException("No sub-content found with map-key [" + mapKey + "] for content [" + contentId + "]");
out.append("<!-- no sub-content found with map-key [" + mapKey + "] for content [" + contentId + "] -->");
Debug.logWarning("No sub-content found with map-key [" + mapKey + "] for content [" + contentId + "]", module);
} else {
String subContentId = subContent.getString("contentIdTo");
templateContext.put("mapKey", mapKey);
Expand Down

0 comments on commit 99b9d73

Please sign in to comment.