Fix zero and empty header values (#1901)

environments/ppa-mbqj77/deployments/799^2
Christophe Maudoux 6 years ago
parent fca831411b
commit 05271f9b76
  1. 3
      lemonldap-ng-handler/lib/Lemonldap/NG/Handler/Main/Reload.pm

@ -380,7 +380,8 @@ sub headersInit {
$class->tsv->{headerList}->{$vhost} = [ keys %headers ];
my $sub = '';
foreach ( keys %headers ) {
my $val = $class->substitute( $headers{$_} ) . " || ''";
$headers{$_} ||= "''";
my $val = $class->substitute( $headers{$_} ) . " // ''";
$sub .= "('$_' => $val),";
}

Loading…
Cancel
Save