diff options
author | Florian Pritz <bluewind@xinu.at> | 2013-05-28 21:41:25 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2013-05-28 21:41:25 +0200 |
commit | 30b82e3bc5f986c5e2e87a6f8d069c21c998fa66 (patch) | |
tree | 3e036912f1e3aaa8c836cdf6cd929b8ec74d198a | |
parent | 7b409a8f7132bd731fad017e13ad1229a09a37b7 (diff) | |
download | spampd-30b82e3bc5f986c5e2e87a6f8d069c21c998fa66.tar.gz spampd-30b82e3bc5f986c5e2e87a6f8d069c21c998fa66.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.pl | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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, |