aboutsummaryrefslogtreecommitdiffstats
path: root/cgi-bin
diff options
context:
space:
mode:
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,