Author: lektran
Date: Thu Apr 5 18:55:54 2012
New Revision: 1310010
URL:
http://svn.apache.org/viewvc?rev=1310010&view=revLog:
Merged from trunk r1309993:
Prevent user submitted data from being streamed directly back to the browser when the content map-key is not found. Log a warning instead.
Modified:
ofbiz/branches/release11.04/applications/content/src/org/ofbiz/content/content/ContentWorker.java
Modified: ofbiz/branches/release11.04/applications/content/src/org/ofbiz/content/content/ContentWorker.java
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release11.04/applications/content/src/org/ofbiz/content/content/ContentWorker.java?rev=1310010&r1=1310009&r2=1310010&view=diff==============================================================================
--- ofbiz/branches/release11.04/applications/content/src/org/ofbiz/content/content/ContentWorker.java (original)
+++ ofbiz/branches/release11.04/applications/content/src/org/ofbiz/content/content/ContentWorker.java Thu Apr 5 18:55:54 2012
@@ -355,7 +355,7 @@ public class ContentWorker implements or
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);