Package: spampd / 2.30-23

10-perl.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- a/spampd	2013-11-04 16:03:52.000000000 +0100
+++ b/spampd	2013-11-04 16:05:05.000000000 +0100
@@ -900,6 +900,22 @@
 	usage(0);
 }
 
+# Untaint some options provided by admin command line.
+$pidfile =~ /^(.*)$/; 
+$pidfile = $1;
+
+$relayhost =~ /^(.*)$/; 
+$relayhost = $1;
+
+$relayport =~ /^(.*)$/;
+$relayport = $1;
+
+$host =~ /^(.*)$/; 
+$host = $1;
+
+$port =~ /^(.*)$/;
+$port = $1;
+
 if ( $options{tagall} ) { $tagall = 1; }
 if ( $options{'log-rules-hit'} ) { $rh = 1; }
 if ( $options{debug} ) { $debug = 1; $nsloglevel = 4; }