You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Wes Wannemacher (JIRA)" <ji...@apache.org> on 2009/09/21 17:56:48 UTC
[jira] Resolved: (WW-3246) Optgroup Freemarker template desn't
escape HTML
[ https://issues.apache.org/struts/browse/WW-3246?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wes Wannemacher resolved WW-3246.
---------------------------------
Resolution: Fixed
Assignee: Wes Wannemacher
fixed and unit tests updated
> Optgroup Freemarker template desn't escape HTML
> -----------------------------------------------
>
> Key: WW-3246
> URL: https://issues.apache.org/struts/browse/WW-3246
> Project: Struts 2
> Issue Type: Bug
> Components: Other
> Affects Versions: 2.1.6
> Reporter: Xavi Arias
> Assignee: Wes Wannemacher
> Priority: Minor
> Fix For: 2.1.8
>
>
> The actual code of optgroup.ftl in the simple theme renders ${tmpKeyStr}, should not be ${tmpKeyStr?html} as in select tags?
> <#assign tmpKey=stack.findValue(optGroupInternalListUiBean.parameters.listKey) />
> <#assign tmpValue=stack.findValue(optGroupInternalListUiBean.parameters.listValue) />
> <#assign tmpKeyStr = tmpKey.toString() />
> <option value="${tmpKeyStr}"
> <#if tag.contains(parameters.nameValue, tmpKeyStr) == true>
> selected="selected"
> </#if>
> >${tmpValue}
> </option>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.