From a20faa28242d06662c41771cf105b66ee8b0a097 Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Fri, 11 Sep 2015 17:13:37 -0400 Subject: [PATCH] escape out since we're rendering and wrapping HTML around it --- qa/test_output_webifier.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qa/test_output_webifier.pl b/qa/test_output_webifier.pl index 750820902..b91748db0 100755 --- a/qa/test_output_webifier.pl +++ b/qa/test_output_webifier.pl @@ -3,6 +3,9 @@ # This script assumes git checkouts at ~/git/Evergreen and ~/git/OpenSRF that # correspond to branches used to produce the test output being parsed. +use CGI qw(:standard escapeHTML); +my $q = CGI->new; + my $state = 'skipping'; my $error_count = 0; my $subpage_count = 0; @@ -98,7 +101,7 @@ while (my $line = <>) { $class = ''; } chomp $line; - my $html_line = "$line"; + my $html_line = "" . $q->escapeHTML($line) . ""; print SUB_PAGE "$html_line\n"; } if ($line =~ /=~-\._/) { -- 2.11.0