Fix to get safely using wrapper sub 2/2

This commit is contained in:
Ilia Rostovtsev
2021-09-28 16:30:05 +03:00
parent 6566bd9c48
commit f69fa81e59
118 changed files with 313 additions and 312 deletions

View File

@@ -10,13 +10,13 @@ require './qmail-lib.pl';
# Check if qmail is installed
if (!-d $config{'qmail_dir'}) {
print &text('index_edir', "<tt>$config{'qmail_dir'}</tt>",
"$gconfig{'webprefix'}/config.cgi?$module_name"),"<p>\n";
"@{[&get_webprefix()]}/config.cgi?$module_name"),"<p>\n";
&ui_print_footer("/", $text{'index'});
exit;
}
if (!-d $qmail_alias_dir || !-d $qmail_bin_dir) {
print &text('index_edir2', "<tt>$config{'qmail_dir'}</tt>",
"$gconfig{'webprefix'}/config.cgi?$module_name"),"<p>\n";
"@{[&get_webprefix()]}/config.cgi?$module_name"),"<p>\n";
&ui_print_footer("/", $text{'index'});
exit;
}