From 30b82e3bc5f986c5e2e87a6f8d069c21c998fa66 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Tue, 28 May 2013 21:41:25 +0200 Subject: untaint relayhost/relayport too Leads to errors in process_request() when connecting otherwise. Signed-off-by: Florian Pritz --- spampd.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spampd.pl b/spampd.pl index fca23e4..2798d50 100644 --- a/spampd.pl +++ b/spampd.pl @@ -937,8 +937,10 @@ if ( !$options{logsock} ) { }; } -# untaint pidfile +# untaint some args to prevent errors in other modules ($pidfile) = ($pidfile =~ /^(.+)$/); +($relayhost) = ($relayhost =~ /^(.+)$/); +($relayport) = ($relayport =~ /^(.+)$/); my $server = bless { server => {host => $host, -- cgit v1.2.3-24-g4f1b