Commit 14d51b22 authored by Ben Joyce's avatar Ben Joyce Committed by Chromium LUCI CQ

Escape characters in uploaded summary.

Bug: 1161286
Change-Id: Ieadca6a052085daaf5ef4a4099fc46e70363f5a2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2630737
Auto-Submit: benjamin joyce <bjoyce@chromium.org>
Reviewed-by: default avatarJared Saul <jsaul@google.com>
Commit-Queue: Jared Saul <jsaul@google.com>
Cr-Commit-Position: refs/heads/master@{#843835}
parent f315fa88
......@@ -82,10 +82,10 @@ class ResultSinkClient(object):
report_check_size = MAX_REPORT_LEN - 45
test_log_formatted = cgi.escape(test_log)
if len(test_log) > report_check_size:
test_log_formatted = ('<pre>' + test_log[:report_check_size] +
test_log_formatted = ('<pre>' + test_log_formatted[:report_check_size] +
'...Full output in Artifact.</pre>')
elif test_log:
test_log_formatted = '<pre>' + test_log + '</pre>'
test_log_formatted = '<pre>' + test_log_formatted + '</pre>'
tr = {
'expected': expected,
......
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