Commit 17c14d31 authored by Nicolai Hähnle's avatar Nicolai Hähnle

Add some cgi.escapes

parent 9544ed6a
......@@ -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):
......
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