Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3246

Optgroup Freemarker template desn't escape HTML

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1.6
    • 2.1.8
    • Other
    • None

    Description

      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>

      Attachments

        Activity

          People

            wesw@wantii.com Wes Wannemacher
            xaviarias Xavi Arias
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: