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

Owner: Nobody in particular
Requestors: mark [...]

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.
Download (untitled) / with headers
text/plain 450b
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.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to