You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by le...@apache.org on 2012/04/05 20:24:54 UTC

svn commit: r1309993 - /ofbiz/trunk/applications/content/src/org/ofbiz/content/content/ContentWorker.java

Author: lektran
Date: Thu Apr  5 18:24:54 2012
New Revision: 1309993

URL: http://svn.apache.org/viewvc?rev=1309993&view=rev
Log:
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/trunk/applications/content/src/org/ofbiz/content/content/ContentWorker.java

Modified: ofbiz/trunk/applications/content/src/org/ofbiz/content/content/ContentWorker.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/content/ContentWorker.java?rev=1309993&r1=1309992&r2=1309993&view=diff
==============================================================================
--- ofbiz/trunk/applications/content/src/org/ofbiz/content/content/ContentWorker.java (original)
+++ ofbiz/trunk/applications/content/src/org/ofbiz/content/content/ContentWorker.java Thu Apr  5 18:24:54 2012
@@ -365,7 +365,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);