Closes #82 : CDA always use secured cookie even if requested site is a http one
This commit is contained in:
parent
47d38c7e3f
commit
208a4f34d2
@ -1534,13 +1534,16 @@ sub autoRedirect {
|
|||||||
# Cross-domain mechanism
|
# Cross-domain mechanism
|
||||||
if ( $self->{cda}
|
if ( $self->{cda}
|
||||||
and $self->{id}
|
and $self->{id}
|
||||||
and $self->{urldc} !~ m#^https?://[^/]*$self->{domain}/#oi )
|
and $self->{urldc} !~ m#^http(s?)://[^/]*$self->{domain}/#oi )
|
||||||
{
|
{
|
||||||
|
my $ssl = $1;
|
||||||
$self->lmLog( 'CDA request', 'debug' );
|
$self->lmLog( 'CDA request', 'debug' );
|
||||||
$self->{urldc} .=
|
$self->{urldc} .=
|
||||||
( $self->{urldc} =~ /\?/ ? '&' : '?' )
|
( $self->{urldc} =~ /\?/ ? '&' : '?' )
|
||||||
. $self->{cookieName} . "="
|
. $self->{cookieName} . "="
|
||||||
. $self->{id};
|
. ( ( $self->{securedCookie} != 2 or $ssl )
|
||||||
|
? $self->{id}
|
||||||
|
: $self->{sessionInfo}->{_httpSession} );
|
||||||
}
|
}
|
||||||
$self->updateStatus;
|
$self->updateStatus;
|
||||||
print $self->SUPER::redirect(
|
print $self->SUPER::redirect(
|
||||||
|
Loading…
Reference in New Issue
Block a user