From 2aaec50b8b240d240859347e4da4fb5ec902f04d Mon Sep 17 00:00:00 2001 From: Andrew Dunstan Date: Wed, 23 Jan 2013 07:51:35 -0800 Subject: [PATCH] add sanity check on scm_url --- cgi-bin/show_log.pl | 1 + 1 file changed, 1 insertion(+) 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/; -- 2.30.2