Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: mark [...] summersault.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.6
Fixed in: (no value)



Subject: empty file names and directories should not be accepted as valid template names.
Hello, Here's a place where H::T could fail more gracefully. I had this stub in a CGI::App module: my $t = $self->load_tmpl(''); I was surprised that H::T accepted this a valid fail name, and spewed the contents of the directory file to the browser, like this, which looked mostly like a bunch of random characters. It would be nice to have a check that the template file is in fact a normal file and not a directory or something else.
This is fixed for 2.7. Thanks.