Url's in rss feed don't use http_host because http_host includes port and sitenames in conf don't.
This commit is contained in:
parent
7270f64835
commit
4112758902
1 changed files with 6 additions and 5 deletions
|
|
@ -238,11 +238,12 @@ sub getSiteURL {
|
|||
unless ($self->{_siteUrl}) {
|
||||
my $site = "";
|
||||
my $sitenames = $self->session->config->get("sitename");
|
||||
if ($self->session->setting->get("hostToUse") eq "HTTP_HOST" and isIn($self->session->env->get("HTTP_HOST"),@{$sitenames})) {
|
||||
$site = $self->session->env->get("HTTP_HOST");
|
||||
} else {
|
||||
$site = $sitenames->[0];
|
||||
}
|
||||
my ($http_host,$currentPort) = split(':', $self->session->env->get("HTTP_HOST"));
|
||||
if ($self->session->setting->get("hostToUse") eq "HTTP_HOST" and isIn($http_host,@{$sitenames})) {
|
||||
$site = $http_host;
|
||||
} else {
|
||||
$site = $sitenames->[0];
|
||||
}
|
||||
my $proto = "http://";
|
||||
if ($self->session->env->get("HTTPS") eq "on") {
|
||||
$proto = "https://";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue