From 4091fbbb0b280120407e0625dd49e741e481a528 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Sun, 30 Sep 2012 17:27:56 +0200 Subject: wibble --- cgi-bin/index.fcgi | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cgi-bin') diff --git a/cgi-bin/index.fcgi b/cgi-bin/index.fcgi index 5c73463..7fbe30d 100755 --- a/cgi-bin/index.fcgi +++ b/cgi-bin/index.fcgi @@ -17,10 +17,14 @@ use lib 'lib'; use Fripost::Panel::Interface; use CGI::Carp 'fatalsToBrowser'; +# Make all warnings fatal. +$SIG{__WARN__} = sub { die @_; }; + my $config_dir = '/etc/fripost-panel'; my @config = catfile ('./', 'default.in'); push @config, catfile ($config_dir, 'config.in') if -f catfile ($config_dir, 'config.in'); + while (my $q = CGI::Fast::->new){ my $cgi = Fripost::Panel::Interface::->new( QUERY => $q, -- cgit v1.2.3