extends 'Catalyst::Action::Serialize::JSON';
-our $VERSION = '0.87';
+our $VERSION = '1.13';
$VERSION = eval $VERSION;
after 'execute' => sub {
my $callback_value = $c->req->param($callback_key);
if ($callback_value) {
- if ($callback_value =~ /^\w+$/) {
+ if ($callback_value =~ /^[.\w]+$/) {
$c->res->content_type('text/javascript');
$c->res->output($callback_value.'('.$c->res->output().');');
} else {
}
};
+__PACKAGE__->meta->make_immutable;
+
1;