This commit is contained in:
Xavier Guimard 2010-05-11 07:47:51 +00:00
parent 034e5a0142
commit 2a8db1c3d6

View File

@ -627,20 +627,13 @@ sub defaultValuesInit {
$cookieName = $args->{cookieName} || $cookieName || 'lemonldap';
$whatToTrace = $args->{whatToTrace} || $whatToTrace || 'uid';
$whatToTrace =~ s/\$//g;
$https =
defined($https)
? ( $https eq $args->{https} ? $https : $args->{https} )
: 1;
$https = defined($https) ? $https : $args->{https};
$args->{securedCookie} = 1 unless defined( $args->{securedCookie} );
$cookieName .= 'http' if ( $args->{securedCookie} == 2 and $https == 0 );
$port =
defined($port) ? ( $port eq $args->{port} ? $port : $args->{port} ) : 0;
$port ||= $args->{port};
$customFunctions = $args->{customFunctions};
$cda = defined($cda) ? ( $cda eq $args->{cda} ? $cda : $args->{cda} ) : 0;
$httpOnly =
defined($httpOnly)
? ( $httpOnly eq $args->{httpOnly} ? $httpOnly : $args->{httpOnly} )
: 0;
$cda = defined($cda) ? $cda : $args->{cda};
$httpOnly = defined($httpOnly) ? $httpOnly : $args->{httpOnly};
$cookieExpiration = $args->{cookieExpiration} || $cookieExpiration;
$timeoutActivity = $args->{timeoutActivity} || $timeoutActivity || 0;
1;