-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
You can eval Perl without EVAL_PERL #245
Comments
I think it is a bug, and not just because it's a security concern. The Template::Parser docs say "The $data hash reference returned contains a BLOCK item containing the compiled Perl code for the template" so it seems to me that instantiating an object with that but no template, or with a template that doesn't match the BLOCK item, shouldn't really be possible. |
At first glance this seems to be by design, template($block) - https://github.com/abw/Template2/blob/master/lib/Template/Directive.pm#L69 |
This isn't a BLOCK directive, it's the BLOCK constructor argument to Template::Document. As |
The
EVAL_PERL
option controls thePERL
directive, which allows Perl code to be embedded in a template. However, you don't needPERL
to run arbitrary Perl code:I'm not sure if this counts as a bug. Feel free to close.
The text was updated successfully, but these errors were encountered: