From cb91d97b2b36196d7c561ada590beea15d511bfa Mon Sep 17 00:00:00 2001 From: Xavier Guimard Date: Fri, 27 May 2016 05:00:50 +0000 Subject: [PATCH] Remove cda code: already written in plugin (#595) --- .../lib/Lemonldap/NG/Portal/Main/Run.pm | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm index bcf554581..ea71987d5 100644 --- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm +++ b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Run.pm @@ -189,22 +189,6 @@ sub autoRedirect { # Redirection should be made if urldc defined if ( $req->{urldc} and not $req->param('lmError') ) { - if ( $self->conf->{cda} - and $req->{id} - and $req->{urldc} !~ - m#^https?://[^/]*$self->conf->{domain}(:\d+)?/#oi - and $self->isTrustedUrl( $req->{urldc} ) ) - { - my $ssl = $req->{urldc} =~ /^https/; - $self->lmLog( 'CDA request', 'debug' ); - $req->{urldc} .= ( $req->{urldc} =~ /\?/ ? '&' : '?' ) - . ( - ( $self->conf->{securedCookie} < 2 or $ssl ) - ? "$self->{conf}->{cookieName}=$self->{id}" - : "$self->{conf}->{cookieName}http=" - . $self->{sessionInfo}->{_httpSession} - ); - } if ( $self->_jsRedirect->() ) { $req->error(PE_REDIRECT); $req->datas->{redirectFormMethod} = "get";