[Catalyst] How to decline file from extension
Chisel Wright
chisel at herlpacker.co.uk
Thu Dec 21 12:52:28 GMT 2006
On Thu, Dec 21, 2006 at 01:32:45PM +0100, Jean-Michel Caricand wrote:
> Hi alls,
>
> I want my Catalyst application refuse to serve file with .mas
> extension. How to do this?
I'm not going to ask why, and the following is untested but what about
something along the lines of:
sub NoDotMas :Regex('\.mas$') {
my ($self, $c) = @_;
$c->response->status('403'); # or whatever
}
--
Chisel Wright
e: chisel at herlpacker.co.uk
w: http://www.herlpacker.co.uk/
print $signatures[ rand(@signatures) ];
More information about the Catalyst
mailing list