setting $Conf{CgiNavBarAdminAllHosts} that allows all hosts to
be listed in the left nav bar for admins.
+* Fixed new 2.0.0 CGI navigation bug that causes the top-level directory
+ to have a URL "&share=//boot&dir=" instead of "&share=/boot&dir=/".
+ Reported by Pascal Schelcher.
+
* Added "PerlTaintCheck On" to the mod_perl section in the docs,
suggested by Tim Demarest.
# Update various config parameters
#
+#
+# Guess $Conf{CgiURL}
+#
+if ( !defined($Conf{CgiURL}) ) {
+ if ( $Conf{CgiDir} =~ m{cgi-bin(/.*)} ) {
+ $Conf{CgiURL} = "'http://$Conf{ServerHost}/cgi-bin$1/BackupPC_Admin'";
+ } else {
+ $Conf{CgiURL} = "'http://$Conf{ServerHost}/cgi-bin/BackupPC_Admin'";
+ }
+}
+
#
# IncrFill should now be off
#
my $errors;
my $vars = {};
- open(F, "cgi-bin/BackupPC_Admin")
- || die("can't open cgi-bin/BackupPC_Admin\n");
- while ( <F> ) {
- s/\$Lang->{([^}]*)}/$vars->{$1} = 1;/eg;
+ foreach my $file ( qw(cgi-bin/BackupPC_Admin bin/BackupPC_sendEmail) ) {
+ open(F, $file) || die("can't open $file");
+ while ( <F> ) {
+ s/\$Lang->{([^}]*)}/$vars->{$1} = 1;/eg;
+ }
+ close(F);
}
- close(F);
foreach my $f ( <lib/BackupPC/Lang/*.pm> ) {
my $done = {};
open(F, $f) || die("can't open $f\n");