Avoid some warnings (#595)
This commit is contained in:
parent
b3e18e2f35
commit
605514e7bc
|
@ -811,7 +811,7 @@ sub extractFormInfo {
|
|||
my ( $idp, $idp_cookie ) = $self->getIDP($req);
|
||||
|
||||
# Get confirmation flag
|
||||
my $confirm_flag = $req->param("confirm");
|
||||
my $confirm_flag = $req->param("confirm") // 0;
|
||||
|
||||
# If confirmation is -1 from resolved IDP screen,
|
||||
# or IDP was not resolve, let the user choose its IDP
|
||||
|
|
|
@ -47,7 +47,7 @@ sub init {
|
|||
my $saml_sso_art_url_ret = $self->getMetaDataURL(
|
||||
"samlIDPSSODescriptorSingleSignOnServiceHTTPArtifact", 2 );
|
||||
$self->ssoUrlRe(
|
||||
qr/^(\Q$saml_sso_soap_url\E|\Q$saml_sso_soap_url_ret\E|\Q$saml_sso_get_url\E|\Q$saml_sso_get_url_ret\E|\Q$saml_sso_post_url\E|\Q$saml_sso_post_url_ret\E|\Q$saml_sso_art_url\E|\Q$saml_sso_art_url_ret\E)$/i
|
||||
qr/^\Q($saml_sso_soap_url|$saml_sso_soap_url_ret|$saml_sso_get_url|$saml_sso_get_url_ret|$saml_sso_post_url|$saml_sso_post_url_ret|$saml_sso_art_url|$saml_sso_art_url_ret)\E$/i
|
||||
);
|
||||
|
||||
my $saml_slo_soap_url =
|
||||
|
|
|
@ -134,7 +134,8 @@ sub loadService {
|
|||
# Create Lasso server with service metadata
|
||||
my $server = $self->createServer(
|
||||
$service_metadata->serviceToXML(
|
||||
$self->conf->{templateDir} . "/common/saml2-metadata.tpl", $self->conf
|
||||
$self->conf->{templateDir} . "/common/saml2-metadata.tpl",
|
||||
$self->conf
|
||||
),
|
||||
$self->conf->{samlServicePrivateKeySig},
|
||||
$self->conf->{samlServicePrivateKeySigPwd},
|
||||
|
@ -1420,9 +1421,9 @@ sub getMetaDataURL {
|
|||
$index = 3 unless defined $index;
|
||||
$full = 0 unless defined $full;
|
||||
|
||||
return unless defined $self->conf->{$key};
|
||||
return '' unless defined $self->conf->{$key};
|
||||
|
||||
my $url = ( split( /;/, $self->conf->{$key} ) )[$index];
|
||||
my $url = ( split( /;/, $self->conf->{$key} ) )[$index] || '';
|
||||
|
||||
# Get portal value
|
||||
my $portal = $self->conf->{portal};
|
||||
|
|
Loading…
Reference in New Issue
Block a user