From 3e0f3c7e0b2ca1fafed7859c9b7f0284b396576d Mon Sep 17 00:00:00 2001 From: Arnaud Desmons Date: Wed, 18 Sep 2002 12:21:53 +0000 Subject: missed \n between commented string and new string --- proxy_wizard/scripts/Squidconf.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'proxy_wizard/scripts') diff --git a/proxy_wizard/scripts/Squidconf.pm b/proxy_wizard/scripts/Squidconf.pm index d9d1c103..b586b711 100644 --- a/proxy_wizard/scripts/Squidconf.pm +++ b/proxy_wizard/scripts/Squidconf.pm @@ -51,19 +51,19 @@ mynetw = $ENV{wiz_squid_mynetw} cache_mem = $ENV{wiz_squid_mem} http_port = $ENV level = $ENV{wiz_squid_level}"); if ($ENV{wiz_squid_level} == 1) { substInFile { - s|^\s*\#?\s*(http_access\s*)deny(\s*all.*)|\#$&$1allow$2|; + s|^\s*\#?\s*(http_access\s*)deny(\s*all.*)|\#$&\n$1allow$2|; } $file; } elsif ($ENV{wiz_squid_level} == 2) { substInFile { - s|^\s*\#?\s*(http_access\s*)allow(\s*all.*)|\#$&$1deny$2|; - s|^\s*\#?\s*(http_access\s*allow\s*)localhost|\#$&$1mynetwork|; + s|^\s*\#?\s*(http_access\s*)allow(\s*all.*)|\#$&\n$1deny$2|; + s|^\s*\#?\s*(http_access\s*allow\s*)localhost|\#$&\n$1mynetwork|; } $file; } elsif ($ENV{wiz_squid_level} == 3) { substInFile { - s|^\s*\#?\s*(http_access\s*)allow(\s*all.*)|\#$&$1deny$2|; - s|^\s*\#?\s*(http_access\s*allow\s*)mynetwork|\#$&$1localhost|; + s|^\s*\#?\s*(http_access\s*)allow(\s*all.*)|\#$&\n$1deny$2|; + s|^\s*\#?\s*(http_access\s*allow\s*)mynetwork|\#$&\n$1localhost|; } $file; } else { # should not happen -- cgit v1.2.1