From: ndparker <> Date: Wed, 7 Mar 2001 02:37:48 +0000 (+0000) Subject: fixed some bugs, should now produce correct RFC822-Headers :-) X-Git-Url: https://git.p6c8.net/selfforum.git/commitdiff_plain/4a48147439aaea9f8e753d7cc37b38733d60bdd5?ds=inline fixed some bugs, should now produce correct RFC822-Headers :-) --- diff --git a/selfforum-cgi/shared/Mail.pm b/selfforum-cgi/shared/Mail.pm index e46a81c..73166c9 100644 --- a/selfforum-cgi/shared/Mail.pm +++ b/selfforum-cgi/shared/Mail.pm @@ -186,18 +186,12 @@ sub encode_qp ($) sub get_list ($$) { my ($start,$list)=splice @_; - my $string=""; - return "" unless (length($list)); - if (ref($list)) { - return "" unless (@$list); - foreach (@$list) { - $string.="$start: $_\n";}} - else { - $string="$start: $list\n";} + return $start . ': ' . $list . "\n" if (defined $list and not ref $list and length $list); - # Rueckgabe - $string; + return $start . ': ' . join (', ',@$list) . "\n" if (ref $list); + + ''; } ##############################################