X-Git-Url: https://git.exim.org/buildfarm-server.git/blobdiff_plain/9aab6bac9c2c174a5ef8869e9b947a3917e18087..d12dd0f9631357ac568bb2163dc7a292688e3f10:/cgi-bin/addnotes.pl diff --git a/cgi-bin/addnotes.pl b/cgi-bin/addnotes.pl index 11186dd..3a760a2 100755 --- a/cgi-bin/addnotes.pl +++ b/cgi-bin/addnotes.pl @@ -29,7 +29,8 @@ my $sysnotes = $query->param('sysnotes'); my $content = "animal=$animal\&sysnotes=$sysnotes"; -require "$ENV{BFConfDir}/BuildFarmWeb.pl"; +use FindBin qw($RealBin); +require "$RealBin/../BuildFarmWeb.pl"; die "no dbname" unless $dbname; die "no dbuser" unless $dbuser; @@ -119,6 +120,3 @@ $db->disconnect; print "Content-Type: text/plain\n\n"; print "request was on:\n$content\n"; - - -