Browse Source

keep escaping XML in stacktraces. PR 39492

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@796144 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 16 years ago
parent
commit
373ed6b2aa
3 changed files with 28 additions and 2 deletions
  1. +4
    -0
      WHATSNEW
  2. +12
    -1
      src/etc/junit-frames.xsl
  3. +12
    -1
      src/etc/junit-noframes.xsl

+ 4
- 0
WHATSNEW View File

@@ -408,6 +408,10 @@ Fixed bugs:
update attribute has been set to true.
Bugzilla Report 30751.

* The default stylesheets for <junitreport> failed to properly escape
XML content in exception stack traces.
Bugzilla Report 39492

Other changes:
--------------
* The get task now also follows redirects from http to https


+ 12
- 1
src/etc/junit-frames.xsl View File

@@ -862,7 +862,18 @@ h6 {
-->
<xsl:template name="br-replace">
<xsl:param name="word"/>
<xsl:value-of disable-output-escaping="yes" select='stringutils:replace(string($word),"&#xA;","&lt;br/>")'/>
<xsl:choose>
<xsl:when test="contains($word, '&#xa;')">
<xsl:value-of select="substring-before($word, '&#xa;')"/>
<br/>
<xsl:call-template name="br-replace">
<xsl:with-param name="word" select="substring-after($word, '&#xa;')"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$word"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>

<xsl:template name="display-time">


+ 12
- 1
src/etc/junit-noframes.xsl View File

@@ -451,7 +451,18 @@
-->
<xsl:template name="br-replace">
<xsl:param name="word"/>
<xsl:value-of disable-output-escaping="yes" select='stringutils:replace(string($word),"&#xA;","&lt;br/>")'/>
<xsl:choose>
<xsl:when test="contains($word, '&#xa;')">
<xsl:value-of select="substring-before($word, '&#xa;')"/>
<br/>
<xsl:call-template name="br-replace">
<xsl:with-param name="word" select="substring-after($word, '&#xa;')"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$word"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>

<xsl:template name="display-time">


Loading…
Cancel
Save