X-Git-Url: https://git.exim.org/buildfarm-server.git/blobdiff_plain/60b6200d219bb8b32a1db1c371439bc120989c1a..f0286f91a9ec65c30a27f070a179ca9f6de53dbd:/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"; - - -