Fix variable names to avoid ambiguity

* Note: Discussed here:
https://github.com/webmin/webmin/pull/2553#issuecomment-3328436525
This commit is contained in:
Ilia Ross
2025-09-25 15:23:06 +03:00
parent f08ad4eb19
commit a027ad5dd6
5 changed files with 14 additions and 14 deletions

View File

@@ -13261,11 +13261,11 @@ if (!$def && $gconfig{'webmin_email_url'}) {
# From a config option
$url = $gconfig{'webmin_email_url'};
}
elsif ($ENV{'HTTP_HOST'} || $ENV{'SSL_HOST'}) {
elsif ($ENV{'HTTP_HOST'} || $ENV{'SSL_CN'}) {
# From this HTTP request
my $port = $ENV{'SERVER_PORT'} || 80;
my $host = $ENV{'SSL_HOST'}
? "$ENV{'SSL_HOST'}:$port"
my $host = $ENV{'SSL_CN'}
? "$ENV{'SSL_CN'}:$port"
: $ENV{'HTTP_HOST'};
if ($host =~ s/:(\d+)$//) {
$port = $1;