File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -168,7 +168,9 @@ if ((!$aliasdom && $d->{'dir'}) ||
168
168
my $domhome = " <tt>$d ->{'home'}</tt>" ;
169
169
if (&domain_has_website($d ) && $d -> {' dir' } &&
170
170
!$d -> {' proxy_pass_mode' } && &foreign_available(" filemin" )) {
171
- my $phd = &public_html_dir($d );
171
+ my $ophd ;
172
+ my $phd = $ophd = &public_html_dir($d );
173
+ my $hd = $d -> {' home' };
172
174
my %faccess = &get_module_acl(undef , ' filemin' );
173
175
my @ap = split (/ \s +/ , $faccess {' allowed_paths' });
174
176
if (@ap == 1) {
@@ -177,8 +179,12 @@ if ((!$aliasdom && $d->{'dir'}) ||
177
179
$ap [0] = $d -> {' home' };
178
180
}
179
181
$phd =~ s / ^\Q $ap[0]\E // ;
182
+ $hd =~ s / ^\Q $ap[0]\E // ;
183
+ $hd = ' /' if (!$hd );
180
184
}
181
- $domhome = " <a href=\" @{[&get_webprefix_safe()]}/filemin/index.cgi?path=@{[&urlize($phd )]}\" >$domhome </a>" ;
185
+ my $dompath = -d $ophd ? &urlize($phd ) : &urlize($hd );
186
+ $domhome = " <a href=\" @{[&get_webprefix_safe()]}/filemin/index" .
187
+ " .cgi?path=$dompath \" >$domhome </a>" ;
182
188
}
183
189
print &ui_table_row($text {' edit_home' }, $domhome , 3);
184
190
}
You can’t perform that action at this time.
0 commit comments