summaryrefslogtreecommitdiff
path: root/piglit-summary-html.py
diff options
context:
space:
mode:
authorNicolai Haehnle <nhaehnle@gmail.com>2007-03-26 23:09:37 +0200
committerNicolai Haehnle <nhaehnle@gmail.com>2007-03-26 23:09:37 +0200
commit17c14d316943dc223bb121c1803837c77d573b8c (patch)
tree862c9799da99020e500036ce2e013cefadf1c11a /piglit-summary-html.py
parent9544ed6a77ed6e5482983d4fea911e4c6c8f1d14 (diff)
Add some cgi.escapes
Diffstat (limited to 'piglit-summary-html.py')
-rwxr-xr-xpiglit-summary-html.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/piglit-summary-html.py b/piglit-summary-html.py
index 0037e7cbc..e89185f4d 100755
--- a/piglit-summary-html.py
+++ b/piglit-summary-html.py
@@ -22,6 +22,7 @@
# DEALINGS IN THE SOFTWARE.
from getopt import getopt, GetoptError
+import cgi
import errno
import os
import sys
@@ -216,9 +217,9 @@ def buildDetailValue(detail):
return ResultList % { 'items': items }
elif type(detail) == str and detail[0:3] == '@@@':
- return ResultMString % { 'detail': detail[3:] }
+ return ResultMString % { 'detail': cgi.escape(detail[3:]) }
- return str(detail)
+ return cgi.escape(str(detail))
def buildDetails(testResult):