From 19d244c081f80ebb0fc8cb007ba35fc34c7e64f8 Mon Sep 17 00:00:00 2001 From: mathias Date: Mon, 2 Apr 2018 18:24:21 +0200 Subject: [PATCH] Don't send reports --- .htaccess | 2 +- report | 17 ----------------- 2 files changed, 1 insertion(+), 18 deletions(-) delete mode 100755 report diff --git a/.htaccess b/.htaccess index 9a76bcb..db43650 100644 --- a/.htaccess +++ b/.htaccess @@ -16,7 +16,7 @@ SetHandler cgi-script -Header set Content-Security-Policy "default-src 'none'; font-src data:; form-action 'self'; img-src 'self'; manifest-src 'self'; style-src 'self'; upgrade-insecure-requests; report-uri /report" +Header set Content-Security-Policy "default-src 'none'; font-src data:; form-action 'self'; img-src 'self'; manifest-src 'self'; style-src 'self'; upgrade-insecure-requests" Header set X-Frame-Options "DENY" Header set X-Xss-Protection "1; mode=block" diff --git a/report b/report deleted file mode 100755 index 8192e49..0000000 --- a/report +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/perl -use CGI; -my $q = new CGI; - -my $data = CGI::param('POSTDATA'); - -if (($data ne "")) -{ - open (SEND, "|/usr/lib/sendmail -t"); - print SEND "From: mail\@mathias.re\n"; - print SEND "To: mail\@mathias.re\n"; - print SEND "Subject: CSP Report\n\n"; - print SEND "$data\n"; - close (SEND); -} - -print $q->redirect('/');