summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-05-28 21:41:25 +0200
committerFlorian Pritz <bluewind@xinu.at>2013-05-28 21:41:25 +0200
commit30b82e3bc5f986c5e2e87a6f8d069c21c998fa66 (patch)
tree3e036912f1e3aaa8c836cdf6cd929b8ec74d198a
parent7b409a8f7132bd731fad017e13ad1229a09a37b7 (diff)
downloadspampd-working.tar.gz
spampd-working.tar.xz
untaint relayhost/relayport tooworking
Leads to errors in process_request() when connecting otherwise. Signed-off-by: Florian Pritz <bluewind@xinu.at>
-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,