Commit ebc8b1dc authored by david.verdin's avatar david.verdin
Browse files

[#3272][Reported by M. Anderson, riseup.net] Fix: In some cases still to...

[#3272][Reported by M. Anderson, riseup.net] Fix: In some cases still to elucidate, the "verp_rate" parameter trailing percent sign disappears before being use. This would mak sympa crash. We now return undef if this parameter hasn't the right structure.



git-svn-id: https://subversion.renater.fr/sympa/trunk@4758 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
parent b5107119
......@@ -100,6 +100,13 @@ Subject: [% FILTER qencode %][%|loc%]Antivirus scan failed[%END%][%END%]
[% error_msg %]
[% ELSIF type == 'parameter_error' -%]
Subject: [% FILTER qencode %][%|loc%]Parameter error[%END%][%END%]
[%|loc(par_name,par_value)%]The value for parameter %s was badly defined: %1[%END%]
[%|loc(action)%]%1 impossible.[%END%]
[%|loc%]See logs for more details.[%END%]
[% ELSIF type == 'unable_to_create_dir' -%]
Subject: [% FILTER qencode %][%|loc%]Unable to create directory[%END%][%END%]
......
......@@ -1710,6 +1710,10 @@ sub extract_verp_rcpt() {
if ( $percent =~ /^(\d+)\%/ ) {
$nbpart = 100/$1;
}
else {
&do_log ('err', 'Wrong format for parameter extract_verp: %s. Can\'t process VERP.',$percent);
return undef;
}
my $modulo = $xseq % $nbpart ;
my $lenght = int (($#{$refrcpt} + 1) / $nbpart) + 1;
......
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