Skip Menu |
 

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

Report information
The Basics
Id: 67972
Status: new
Priority: 0/
Queue: HTML-Mason

People
Owner: Nobody in particular
Requestors: rt.cpan [...] sartak.org
Cc:
AdminCc:

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



Subject: apply_escapes doesn't complain if you pass in no flags
Download (untitled) / with headers
text/plain 452b
sub apply_escapes { my $self = shift; my $text = shift; foreach my $flag (@_) { param_error "Invalid escape flag: $flag" unless exists $self->{escapes}{$flag}; $self->{escapes}{$flag}->(\$text); } return $text; } It'd be nice if Mason generated a warning or error if @_ == 0, because there seems to be a strong expectation that you don't need any flag to get HTML escaping or something. Shawn


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

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.