[Piglit] [PATCH 6/7] html: Escape test names in the summary page.
Dylan Baker
baker.dylan.c at gmail.com
Thu Apr 25 17:02:24 PDT 2013
From: Kenneth Graunke <kenneth at whitecape.org>
Characters like & and < are need to be escaped in proper HTML/XML.
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Dylan Baker <baker.dylan.c at gmail.com>
---
piglit-summary-html.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/piglit-summary-html.py b/piglit-summary-html.py
index 0f3e049..24dd302 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)
--
1.8.1.4
More information about the Piglit
mailing list