[ic] Parser eats up false values in tag body
Jon Jensen
jon at endpoint.com
Mon Aug 30 16:15:11 UTC 2010
On Mon, 30 Aug 2010, Stefan Hornburg (Racke) wrote:
> This patch fixes the problem:
>
> --- a/lib/Vend/Parse.pm
> +++ b/lib/Vend/Parse.pm
> @@ -482,7 +482,7 @@ sub resolve_args {
> }
> @list = @{$ref}{@{$Order{$tag}}};
> push @list, $ref if defined $addAttr{$tag};
> - push @list, (shift || $ref->{body} || '') if $hasEndTag{$tag};
> + push @list, (shift || (defined $ref->{body} ? $ref->{body} : '')) if $hasEndTag{$tag};
> return @list;
> }
Looks good to me.
Jon
--
Jon Jensen
End Point Corporation
http://www.endpoint.com/
More information about the interchange-users
mailing list