You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by mr...@apache.org on 2008/02/16 14:06:15 UTC
svn commit: r628287 -
/struts/struts2/trunk/core/src/main/resources/template/simple/debug.ftl
Author: mrdon
Date: Sat Feb 16 05:06:12 2008
New Revision: 628287
URL: http://svn.apache.org/viewvc?rev=628287&view=rev
Log:
Escaping HTML for values
WW-2319
Modified:
struts/struts2/trunk/core/src/main/resources/template/simple/debug.ftl
Modified: struts/struts2/trunk/core/src/main/resources/template/simple/debug.ftl
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/resources/template/simple/debug.ftl?rev=628287&r1=628286&r2=628287&view=diff
==============================================================================
--- struts/struts2/trunk/core/src/main/resources/template/simple/debug.ftl (original)
+++ struts/struts2/trunk/core/src/main/resources/template/simple/debug.ftl Sat Feb 16 05:06:12 2008
@@ -55,7 +55,7 @@
<#list stackObject.value.keySet() as propertyName>
<#if renderRow==true></tr><tr><#else> <#assign renderRow=false> </#if>
<td bgcolor="<#if (index % 2) == 0>#BBBBBB<#else>#CCCCCC</#if>">${propertyName}</td>
- <td bgcolor="<#if (index % 2) == 0>#BBBBBB<#else>#CCCCCC</#if>"><#if stackObject.value.get(propertyName)?exists>${stackObject.value.get(propertyName).toString()}<#else>null</#if></td>
+ <td bgcolor="<#if (index % 2) == 0>#BBBBBB<#else>#CCCCCC</#if>"><#if stackObject.value.get(propertyName)?exists>${stackObject.value.get(propertyName).toString()?html}<#else>null</#if></td>
</tr>
<#assign index= index + 1>
</#list>
@@ -73,7 +73,7 @@
<#assign index=1>
<#list stack.context.keySet() as contextKey>
<tr bgcolor="<#if (index % 2) == 0>#BBBBBB<#else>#CCCCCC</#if>">
- <td>${contextKey}</td><td><#if stack.context.get(contextKey)?exists>${stack.context.get(contextKey).toString()}<#else>null</#if></td>
+ <td>${contextKey}</td><td><#if stack.context.get(contextKey)?exists>${stack.context.get(contextKey).toString()?html}<#else>null</#if></td>
</tr>
<#assign index= index + 1>
</#list>