aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Fuchs <mfuchs@pfsense.org>2008-08-20 18:41:55 +0000
committerMartin Fuchs <mfuchs@pfsense.org>2008-08-20 18:41:55 +0000
commit68cf9d6853114abf25656dada11e066389ad0055 (patch)
treee2b5480a534d3c96b3e7e41cbb110fa53bfb4b3b
parentce28757f9a40cc074b968e5085c82035be0ec38b (diff)
downloadpfsense-packages-68cf9d6853114abf25656dada11e066389ad0055.tar.gz
pfsense-packages-68cf9d6853114abf25656dada11e066389ad0055.tar.bz2
pfsense-packages-68cf9d6853114abf25656dada11e066389ad0055.zip
after squid package installation the service does not start because the uri_whitespace-parameter is not set... fixed...
-rw-r--r--packages/squid/squid.inc3
-rw-r--r--packages/squid3/squid.inc3
2 files changed, 4 insertions, 2 deletions
diff --git a/packages/squid/squid.inc b/packages/squid/squid.inc
index 75486a9f..752be9c0 100644
--- a/packages/squid/squid.inc
+++ b/packages/squid/squid.inc
@@ -561,7 +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";
- $conf .= "uri_whitespace {$settings['uri_whitespace']}\n";
+ if (empty($settings['uri_whitespace'])) $conf .= "uri_whitespace strip\n";
+ else $conf .= "uri_whitespace {$settings['uri_whitespace']}\n";
if(!empty($settings['dns_nameservers'])) {
$altdns = explode(";", ($settings['dns_nameservers']));
diff --git a/packages/squid3/squid.inc b/packages/squid3/squid.inc
index f2378a22..763ed082 100644
--- a/packages/squid3/squid.inc
+++ b/packages/squid3/squid.inc
@@ -561,7 +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";
- $conf .= "uri_whitespace {$settings['uri_whitespace']}\n";
+ if (empty($settings['uri_whitespace'])) $conf .= "uri_whitespace strip\n";
+ else $conf .= "uri_whitespace {$settings['uri_whitespace']}\n";
if(!empty($settings['dns_nameservers'])) {
$altdns = explode(";", ($settings['dns_nameservers']));