From 6786d4fd36c92cfcb9adba462e14bfd31e58594b Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Wed, 20 Aug 2008 19:22:00 +0000 Subject: speed up cfg.generation after the first run and comment --- packages/squid/squid.inc | 6 +++--- packages/squid3/squid.inc | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'packages') diff --git a/packages/squid/squid.inc b/packages/squid/squid.inc index 752be9c0..9d1b6af4 100644 --- a/packages/squid/squid.inc +++ b/packages/squid/squid.inc @@ -561,9 +561,9 @@ EOD; if ($settings['disable_xforward']) $conf .= "forwarded_for off\n"; if ($settings['disable_via']) $conf .= "via off\n"; if ($settings['disable_squidversion']) $conf .= "httpd_suppress_version_string on\n"; - if (empty($settings['uri_whitespace'])) $conf .= "uri_whitespace strip\n"; - else $conf .= "uri_whitespace {$settings['uri_whitespace']}\n"; - + if (!empty($settings['uri_whitespace'])) $conf .= "uri_whitespace {$settings['uri_whitespace']}\n"; + else $conf .= "uri_whitespace strip\n"; //only used for first run + if(!empty($settings['dns_nameservers'])) { $altdns = explode(";", ($settings['dns_nameservers'])); $conf .= "dns_nameservers "; diff --git a/packages/squid3/squid.inc b/packages/squid3/squid.inc index 763ed082..c9932f98 100644 --- a/packages/squid3/squid.inc +++ b/packages/squid3/squid.inc @@ -561,8 +561,8 @@ EOD; if ($settings['disable_xforward']) $conf .= "forwarded_for off\n"; if ($settings['disable_via']) $conf .= "via off\n"; if ($settings['disable_squidversion']) $conf .= "httpd_suppress_version_string on\n"; - if (empty($settings['uri_whitespace'])) $conf .= "uri_whitespace strip\n"; - else $conf .= "uri_whitespace {$settings['uri_whitespace']}\n"; + if (!empty($settings['uri_whitespace'])) $conf .= "uri_whitespace {$settings['uri_whitespace']}\n"; + else $conf .= "uri_whitespace strip\n"; //only used for first run if(!empty($settings['dns_nameservers'])) { $altdns = explode(";", ($settings['dns_nameservers'])); -- cgit v1.2.3