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: [EMAIL PROTECTED]
w: http://www.herlpacker.co.uk/
print $signatures[ rand(@signatures) ];
_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/