fixed a bug that only showed up when the site was on a non-standard port
This commit is contained in:
parent
38be974f88
commit
03ce7b9cc9
1 changed files with 1 additions and 4 deletions
|
|
@ -52,13 +52,10 @@ These subroutines are available from this package:
|
||||||
sub _getSiteURL {
|
sub _getSiteURL {
|
||||||
my $site = $session{env}{HTTP_HOST} || $session{config}{sitename};
|
my $site = $session{env}{HTTP_HOST} || $session{config}{sitename};
|
||||||
my $proto = "http://";
|
my $proto = "http://";
|
||||||
my $port;
|
|
||||||
if ($session{env}{SERVER_PORT} == 443) {
|
if ($session{env}{SERVER_PORT} == 443) {
|
||||||
$proto = "https://";
|
$proto = "https://";
|
||||||
} elsif ($session{env}{SERVER_PORT} != 80) {
|
|
||||||
$port = ":".$session{env}{SERVER_PORT};
|
|
||||||
}
|
}
|
||||||
return $proto.$site.$port;
|
return $proto.$site;
|
||||||
}
|
}
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
#-------------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue