X-Git-Url: https://git.exim.org/buildfarm-server.git/blobdiff_plain/a81cea34b0d8aa483e697b45dacb032a4a26cd5d..81b6d9ed2801481e44e7479eb8bd54ec3aaf837d:/cgi-bin/show_log.pl diff --git a/cgi-bin/show_log.pl b/cgi-bin/show_log.pl index 22df731..ab3d3cd 100755 --- a/cgi-bin/show_log.pl +++ b/cgi-bin/show_log.pl @@ -16,7 +16,8 @@ use CGI; use vars qw($dbhost $dbname $dbuser $dbpass $dbport $template_dir @log_file_names $local_git_clone); -require "$ENV{BFConfDir}/BuildFarmWeb.pl"; +use FindBin qw($RealBin); +require "$RealBin/../BuildFarmWeb.pl"; my $template_opts = { INCLUDE_PATH => $template_dir, EVAL_PERL => 1}; my $template = new Template($template_opts); @@ -107,6 +108,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/; @@ -239,4 +241,3 @@ sub process_changed } return (\@changed_rows,\@commit_logs); } -