From 911db13c49e1a64b19359cd68cb06d2a47dad6af Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Thu, 2 May 2013 16:28:27 +0200 Subject: [PATCH] escape quotes in jail templates --- .../etc/e-smith/templates/etc/fail2ban/jail.conf/30Service25httpd | 8 ++++---- root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service35SOGo | 2 +- .../templates/etc/fail2ban/jail.conf/30Service40LemonLDAPNG | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service25httpd b/root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service25httpd index 4803f47..877b524 100644 --- a/root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service25httpd +++ b/root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service25httpd @@ -16,7 +16,7 @@ logpath = /var/log/httpd/error_log action = smeserver[port="$port",protocol=tcp,bantime=$bantime] EOF -$OUT .= " sendmail[name="Apache (overflows)",dest=$maildest]\n" +$OUT .= " sendmail[name=\"Apache (overflows)\",dest=$maildest]\n" if ($mail eq 'enabled'); $OUT .=<<"EOF"; @@ -28,7 +28,7 @@ logpath = /var/log/httpd/error_log action = smeserver[port="$port",protocol=tcp,bantime=$bantime] EOF -$OUT .= " sendmail[name="Apache (noscript)",dest=$maildest]\n" +$OUT .= " sendmail[name=\"Apache (noscript)\",dest=$maildest]\n" if ($mail eq 'enabled'); $OUT .=<<"EOF"; @@ -40,7 +40,7 @@ logpath = /var/log/httpd/error_log action = smeserver[port="$port",protocol=tcp,bantime=$bantime] EOF -$OUT .= " sendmail[name="Apache (scan)",dest=$maildest]\n" +$OUT .= " sendmail[name=\"Apache (scan)\",dest=$maildest]\n" if ($mail eq 'enabled'); $OUT .=<<"EOF"; @@ -52,6 +52,6 @@ logpath = /var/log/httpd/error_log action = smeserver[port="$port",protocol=tcp,bantime=$bantime] EOF -$OUT .= " sendmail[name="Apache (auth)",dest=$maildest]\n" +$OUT .= " sendmail[name=\"Apache (auth)\",dest=$maildest]\n" if ($mail eq 'enabled'); } diff --git a/root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service35SOGo b/root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service35SOGo index 0d99f45..f361cc5 100644 --- a/root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service35SOGo +++ b/root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service35SOGo @@ -16,7 +16,7 @@ logpath = /var/log/sogo/sogo.log action = smeserver[port="$port",protocol=tcp,bantime=$bantime] EOF -$OUT .= " sendmail[name="SOGo",dest=$maildest]\n" +$OUT .= " sendmail[name=\"SOGo\",dest=$maildest]\n" if ($mail eq 'enabled'); } diff --git a/root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service40LemonLDAPNG b/root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service40LemonLDAPNG index f072cd3..33c8292 100644 --- a/root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service40LemonLDAPNG +++ b/root/etc/e-smith/templates/etc/fail2ban/jail.conf/30Service40LemonLDAPNG @@ -16,7 +16,7 @@ logpath = /var/log/messages action = smeserver[port="$port",protocol=tcp,bantime=$bantime] EOF -$OUT .= " sendmail[name="LemonLDAP::NG",dest=$maildest]\n" +$OUT .= " sendmail[name=\"LemonLDAP::NG\",dest=$maildest]\n" if ($mail eq 'enabled'); }