URI escape branch names in URLs. Don't strip + from branch name.
[buildfarm-server.git] / cgi-bin / typedefs.pl
index 63c0fc56bf86d6cc9fd087da07375066c000bd2a..b70a92e72c232f2b05182c2fae2fd65a2a78458a 100755 (executable)
@@ -16,7 +16,8 @@ my $query = new CGI;
 
 use vars qw($dbhost $dbname $dbuser $dbpass $dbport);
 
-require "$ENV{BFConfDir}/BuildFarmWeb.pl";
+use FindBin qw($RealBin);
+require "$RealBin/../BuildFarmWeb.pl";
 
 my $dsn="dbi:Pg:dbname=$dbname";
 $dsn .= ";host=$dbhost" if $dbhost;