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.