Commit 1ef23218 authored by david.verdin's avatar david.verdin
Browse files

[-bug] All include parameters are not pâragraphs. Consequently, Sympa crashed...

[-bug] All include parameters are not pâragraphs. Consequently, Sympa crashed when trying to check incl->{use_ssl} parameters when the parameter was not a paragraph, because the incl variable was not a hash. Fixed by checking whether the parameter is a ref and a hash.

git-svn-id: https://subversion.renater.fr/sympa/branches/sympa-6.2-branch@12283 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
parent 6ae9eba0
......@@ -7281,7 +7281,9 @@ sub _load_list_members_from_include {
my $incl = Sympa::Tools::Data::dup_var($tmp_incl);
# As CA certificate is required, take it from site config.
if ( $incl->{use_ssl}
if ( ref $incl
and ref $incl eq 'HASH'
and $incl->{use_ssl}
and $incl->{use_ssl} eq 'yes'
and not $incl->{ca_file}
and not $incl->{ca_path}) {
......@@ -7549,7 +7551,9 @@ sub _load_list_admin_from_include {
my $incl = Sympa::Tools::Data::dup_var($tmp_incl);
# As CA certificate is required, take it from site config.
if ( $incl->{use_ssl}
if ( ref $incl
and ref $incl eq 'HASH'
and $incl->{use_ssl}
and $incl->{use_ssl} eq 'yes'
and not $incl->{ca_file}
and not $incl->{ca_path}) {
......@@ -7929,7 +7933,9 @@ sub sync_include_ca {
my $incl = Sympa::Tools::Data::dup_var($tmp_incl);
# As CA certificate is required, take it from site config.
if ( $incl->{use_ssl}
if ( ref $incl
and ref $incl eq 'HASH'
and $incl->{use_ssl}
and $incl->{use_ssl} eq 'yes'
and not $incl->{ca_file}
and not $incl->{ca_path}) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment