From: Andrew Dunstan Date: Wed, 23 Jan 2013 15:51:35 +0000 (-0800) Subject: add sanity check on scm_url X-Git-Url: https://git.exim.org/buildfarm-server.git/commitdiff_plain/2aaec50b8b240d240859347e4da4fb5ec902f04d add sanity check on scm_url --- diff --git a/cgi-bin/show_log.pl b/cgi-bin/show_log.pl index 22df731..7fea634 100755 --- a/cgi-bin/show_log.pl +++ b/cgi-bin/show_log.pl @@ -107,6 +107,7 @@ if ($system && $logdate) $scm = $row->[7]; $scm ||= 'cvs'; # legacy scripts $scmurl = $row->[8]; + $scmurl = undef unless $scmurl =~ /^http/; # slight sanity check $scmurl = 'http://git.postgresql.org/gitweb?p=postgresql.git;a=commit;h=' if ($scmurl eq 'http://git.postgresql.org/git/postgresql.git'); $log_file_names =~ s/^\{(.*)\}$/$1/;