Commit d5b31fe 1 parent e67fbc0 commit d5b31fe Copy full SHA for d5b31fe
File tree 2 files changed +8
-6
lines changed
2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -4768,7 +4768,7 @@ sub _load_include_admin_user_file {
4768
4768
}
4769
4769
4770
4770
unless ($paragraph [$i ] =~
4771
- / ^\s *$key \s +($pinfo ->{$pname }{'file_format'}{$key }{'file_format'})\s *$ /i
4771
+ / ^\s *$key (?: \s +($pinfo ->{$pname }{'file_format'}{$key }{'file_format'}))? \s *$ /i
4772
4772
) {
4773
4773
chomp ($paragraph [$i ]);
4774
4774
$log -> syslog(' info' ,
@@ -4790,9 +4790,11 @@ sub _load_include_admin_user_file {
4790
4790
unless (defined $hash {$k }) {
4791
4791
if (defined $pinfo -> {$pname }{' file_format' }{$k }{' default' }
4792
4792
) {
4793
- $hash {$k } =
4794
- $self -> _load_list_param($k , ' default' ,
4795
- $pinfo -> {$pname }{' file_format' }{$k });
4793
+ $hash {$k } = $self -> _load_list_param(
4794
+ $k ,
4795
+ $pinfo -> {$pname }{' file_format' }{$k }{' default' },
4796
+ $pinfo -> {$pname }{' file_format' }{$k }
4797
+ );
4796
4798
}
4797
4799
}
4798
4800
# # Required fields
@@ -4824,7 +4826,7 @@ sub _load_include_admin_user_file {
4824
4826
}
4825
4827
4826
4828
unless ($paragraph [0] =~
4827
- / ^\s *$pname \s +($pinfo ->{$pname }{'file_format'})\s *$ /i ) {
4829
+ / ^\s *$pname (?: \s +($pinfo ->{$pname }{'file_format'}))? \s *$ /i ) {
4828
4830
chomp ($paragraph [0]);
4829
4831
$log -> syslog(' info' , ' Bad entry "%s" in %s' ,
4830
4832
$paragraph [0], $filename );
Original file line number Diff line number Diff line change @@ -2025,7 +2025,7 @@ sub upgrade {
2025
2025
2026
2026
# included_* and include_sources_* were deprecated and inclusion_*
2027
2027
# was introduced in subscriber_table and admin_table.
2028
- if (lower_version($previous_version , ' 6.2.41b.1 ' )) {
2028
+ if (lower_version($previous_version , ' 6.2.41b.2 ' )) {
2029
2029
my $sdm = Sympa::DatabaseManager-> instance;
2030
2030
2031
2031
$log -> syslog(' notice' , ' Upgrading subscriber_table and admin_table.' );
You can’t perform that action at this time.
0 commit comments