Skip Menu |

This queue is for tickets about the HTML-Template CPAN distribution.

Report information
The Basics
Id: 1456
Status: resolved
Priority: 0/
Queue: HTML-Template

People
Owner: Nobody in particular
Requestors: crazyinsomniac [...] yahoo.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 2.5
Fixed in: (no value)



Subject: <TMPL_VAR> doesn't cause an error
Template.pm, lines 1841 (the comment) and 1842 (line to replace) # die if we need a name and didn't get one #die "HTML::Template->new() : No NAME given to a $which tag at $fname : line $fcounter." if (!defined($name) and $need_names{$which}); die "HTML::Template->new() : No NAME given to a $which tag at $fname : line $fcounter." if ((not defined($name) or length($name)==0 ) and $need_names{$which}); It wasn't dying if I had a template which included <TMPL_VAR>, when TMPL_VAR's require a NAME atrribute. $name was containing '' which is defined
This will be fixed in 2.6. Thanks!