diff options
author | Florian Pritz <bluewind@xinu.at> | 2013-05-28 20:20:44 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2013-05-28 20:20:44 +0200 |
commit | 662d82ec2badc34f4de561021ea714afe1e1bddc (patch) | |
tree | 2210ec9bfd1795b5b304179bb66db53510cafb53 | |
parent | c98c4a7d6108abdb49c3d80aaf301c3cb44a9aaf (diff) | |
download | spampd-662d82ec2badc34f4de561021ea714afe1e1bddc.tar.gz spampd-662d82ec2badc34f4de561021ea714afe1e1bddc.tar.xz |
untaint $pidfile to prevent errors when opening it
For some reason that worked before perl 5.18, but I don't care enough
to figure out why. Since we trust the CLI args untaining anything
should be ok.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r-- | spampd.pl | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -937,6 +937,8 @@ if ( !$options{logsock} ) { }; } +# untaint pidfile +($pidfile) = ($pidfile =~ /^(.+)$/); my $server = bless { server => {host => $host, |