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

Optgroup Freemarker template desn't escape HTML

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.6
    • Fix Version/s: 2.1.8
    • Component/s: Other
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: