From cfac7388c58f4d9bd601b31508aae49e54af5a8f Mon Sep 17 00:00:00 2001 From: Lukasz Lenart Date: Wed, 15 Jan 2014 11:03:21 +0100 Subject: [PATCH] Escapes error messages --- .../org/apache/struts2/dispatcher/error.ftl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/src/main/resources/org/apache/struts2/dispatcher/error.ftl b/core/src/main/resources/org/apache/struts2/dispatcher/error.ftl index 1b89aad79..090bb92a1 100644 --- a/core/src/main/resources/org/apache/struts2/dispatcher/error.ftl +++ b/core/src/main/resources/org/apache/struts2/dispatcher/error.ftl @@ -65,17 +65,17 @@
    <#list msgs as msg> <#if (msg?is_method)> -
  1. ${msg[0]}
  2. +
  3. ${msg[0]?html}
  4. <#else> -
  5. ${msg}
  6. +
  7. ${msg?html}
<#elseif (msgs?size == 1)> <#if (msgs[0]?is_method)> -
  • ${msgs[0][0]}
  • +
  • ${msgs[0][0]?html}
  • <#else> -
  • ${msgs[0]}
  • +
  • ${msgs[0]?html}
  • @@ -126,11 +126,11 @@

    Stacktraces

    <#list chain as ex>
    - ${ex} + ${ex?html}
         <#list ex.stackTrace as frame>
    -    ${frame}
    +    ${frame?html}