summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--spampd.pl4
1 files changed, 3 insertions, 1 deletions
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,