Merge branch 'master' of github.com:qpsmtpd-dev/qpsmtpd-dev

This commit is contained in:
Matt Simerson 2013-03-23 01:20:36 -04:00
commit 08da0fe5c5

View File

@ -314,6 +314,10 @@ sub connect_to_spamd_socket {
return; return;
}; };
# Sanitize for use with taint mode
$socket =~ /^([\w\/.-]+)$/;
$socket = $1;
socket(my $SPAMD, PF_UNIX, SOCK_STREAM, 0) or do { socket(my $SPAMD, PF_UNIX, SOCK_STREAM, 0) or do {
$self->log(LOGERROR, "Could not open socket: $!"); $self->log(LOGERROR, "Could not open socket: $!");
return; return;