From 79075b8e5cf02ba568ad2471c06edff9d8ceb485 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Oudot?= Date: Tue, 2 Feb 2010 22:16:29 +0000 Subject: [PATCH] SAML: do not force optional parameters in add_provider_from_buffer --- .../lemonldap-ng-portal/lib/Lemonldap/NG/Portal/_SAML.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/_SAML.pm b/modules/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/_SAML.pm index 787ec2b4d..f84c9f7b0 100644 --- a/modules/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/_SAML.pm +++ b/modules/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/_SAML.pm @@ -123,8 +123,8 @@ sub addIDP { my $self = shift; my $server = shift; my $metadata = shift; - my $public_key = shift || ''; - my $ca_cert_chain = shift || ''; + my $public_key = shift; + my $ca_cert_chain = shift; return 0 unless ( $server->isa("Lasso::Server") and defined $metadata ); @@ -145,8 +145,8 @@ sub addProvider { my $server = shift; my $role = shift; my $metadata = shift; - my $public_key = shift || ''; - my $ca_cert_chain = shift || ''; + my $public_key = shift; + my $ca_cert_chain = shift; return 0 unless ( $server->isa("Lasso::Server")