From 47cf90f1ef0007938f1b134c7f99cf2db6db7753 Mon Sep 17 00:00:00 2001 From: Ilia Ross Date: Thu, 21 Mar 2024 12:49:08 +0200 Subject: [PATCH] Fix potential warnings --- find.cgi | 2 +- index.cgi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/find.cgi b/find.cgi index 645d33c..acd54e0 100755 --- a/find.cgi +++ b/find.cgi @@ -19,7 +19,7 @@ my %got = map { ( "$_->[0]/$htaccess_htpasswd::config{'htaccess'}", 1 ) } @dirs; my $f_apache = $virtual_server::config{'web'}; my $f_indent = " " x 4; -my $f_label; +my $f_label = ""; $f_label = 2 if (!$f_apache); print &text('find_doing', "$d->{'home'}"),"
\n"; open(my $FIND, "find ".quotemeta($d->{'home'})." -name ". diff --git a/index.cgi b/index.cgi index 7cfa3d9..0d93143 100755 --- a/index.cgi +++ b/index.cgi @@ -37,7 +37,7 @@ foreach my $dir (@dirs) { my $conf = &apache::get_htaccess_config( "$dir->[0]/$htaccess_htpasswd::config{'htaccess'}"); my $desc = &apache::find_directive("AuthName", $conf, 1); - my $users = $dir->[2] == 3 ? + my $users = ($dir->[2] && $dir->[2] == 3) ? &htaccess_htpasswd::list_digest_users($dir->[1]) : &htaccess_htpasswd::list_users($dir->[1]); push(@table, [