ncdc 1.23.1 + checksums + updates
This commit is contained in:
parent
db0e63dbf3
commit
aad45f7196
71 changed files with 359 additions and 27 deletions
|
|
@ -8,8 +8,12 @@ CGI::Minimal::max_read_size(128*1024);
|
|||
my $cgi = CGI::Minimal->new;
|
||||
die if $cgi->truncated;
|
||||
|
||||
open my $S, '|-', qw'/usr/sbin/sendmail -t -f dev@yorhel.nl' or die $!;
|
||||
printf $S <<'_', $cgi->param('name'), $cgi->param('message');
|
||||
my $msg = $cgi->param('message');
|
||||
my $spam = $msg =~ /<a href/;
|
||||
|
||||
if (!$spam) {
|
||||
open my $S, '|-', qw'/usr/sbin/sendmail -t -f dev@yorhel.nl' or die $!;
|
||||
printf $S <<'_', $cgi->param('name'), $msg;
|
||||
To: dev@yorhel.nl
|
||||
From: dev@yorhel.nl
|
||||
Subject: Guestbook post
|
||||
|
|
@ -21,7 +25,8 @@ Message:
|
|||
|
||||
%s
|
||||
_
|
||||
close $S or die;
|
||||
close $S or die;
|
||||
}
|
||||
|
||||
print <<'_';
|
||||
Status: 303
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue