[PATCH 2/4] normalize whitespace for each ref in (attribute) ref list, permitting use of newlines or accidental spaces
Jeffrey Blank
blank at eclipse.ncsc.mil
Mon Jul 30 15:10:47 UTC 2012
Signed-off-by: Jeffrey Blank <blank at eclipse.ncsc.mil>
---
RHEL6/transforms/xccdf2table-stig.xslt | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/RHEL6/transforms/xccdf2table-stig.xslt b/RHEL6/transforms/xccdf2table-stig.xslt
index 95e5d3a..e3024eb 100644
--- a/RHEL6/transforms/xccdf2table-stig.xslt
+++ b/RHEL6/transforms/xccdf2table-stig.xslt
@@ -137,8 +137,8 @@
<xsl:template name="note-output">
<xsl:param name="vulnid_sought"/>
<xsl:param name="vulnid_found"/>
-
- <xsl:variable name="vulnid_expanded" select="concat('V-', $vulnid_found)" />
+ <xsl:variable name="vulnid_found_normal" select="normalize-space($vulnid_found)" />
+ <xsl:variable name="vulnid_expanded" select="concat('V-', $vulnid_found_normal)" />
<xsl:if test="$vulnid_sought=$vulnid_expanded">
<tr><td><xsl:value-of select="@auth"/>: <xsl:value-of select="." /></td></tr>
</xsl:if>
--
1.7.1
More information about the scap-security-guide
mailing list