aboutsummaryrefslogtreecommitdiffstats
path: root/cgi-bin
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem.moulin@fripost.org>2012-09-30 17:27:56 +0200
committerGuilhem Moulin <guilhem.moulin@fripost.org>2012-09-30 17:27:56 +0200
commit4091fbbb0b280120407e0625dd49e741e481a528 (patch)
treebe459f6f5d1590776a7bee4ce4b0110ba774d819 /cgi-bin
parenta4fb637c441cad75350edcbbb2520f7a303b33c2 (diff)
wibble
Diffstat (limited to 'cgi-bin')
-rwxr-xr-xcgi-bin/index.fcgi4
1 files changed, 4 insertions, 0 deletions
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,