summaryrefslogtreecommitdiff
path: root/piglit-summary-html.py
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2012-02-24 18:18:13 -0800
committerKenneth Graunke <kenneth@whitecape.org>2013-05-08 11:59:16 -0700
commitf3b54e717e57661416c2a70de83b6268feacae7a (patch)
tree5d8f02de1a640eb71063295d8917d8e92bf1687c /piglit-summary-html.py
parent9ab2bdf5c2df6f985038dc022e6bcdb474b7e45b (diff)
html: Escape test names in the summary page.
Characters like & and < are need to be escaped in proper HTML/XML. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Dylan Baker <baker.dylan.c@gmail.com>
Diffstat (limited to 'piglit-summary-html.py')
-rwxr-xr-xpiglit-summary-html.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/piglit-summary-html.py b/piglit-summary-html.py
index 0f3e049de..24dd302b8 100755
--- a/piglit-summary-html.py
+++ b/piglit-summary-html.py
@@ -150,7 +150,7 @@ def hrefFromParts(codename, path):
def buildTestSummary(indent, testsummary):
path = testsummary.path
- name = testsummary.name
+ name = cgi.escape(testsummary.name)
testruns = "".join([IndexTestTestrun % {
'status': result.status,
'link': hrefFromParts(result.testrun.codename, path)