Commit 693fb0c5 authored by Charles Ferguson's avatar Charles Ferguson
Browse files

Fix for common.junitxml failing to escape <>.

The less than and greater than symbols were not being escaped so produced
invalid XML. update the xmlattribute escaping.
parent 9aa1367b
......@@ -242,6 +242,8 @@ function junitxml_xmlattribute() {
# Escape characters that will be invalid in attributes
value="${value//&/amp;}"
value="${value//\"/&quot;}"
value="${value//</&lt;}"
value="${value//>/&gt;}"
echo -n "\"$value\""
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment