diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-12-23 17:59:46 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-12-23 17:59:46 +0000 |
commit | 4d72c982b7cb1b2f24486a4ab7a240a82ed2f029 (patch) | |
tree | 5a4065f1a635f8c7d0f6ebb92410466c667d357e /packages/squid/squid.inc | |
parent | bba2cbbcce9aada4156e545e5f8a02500f7e9573 (diff) | |
download | pfsense-packages-4d72c982b7cb1b2f24486a4ab7a240a82ed2f029.tar.gz pfsense-packages-4d72c982b7cb1b2f24486a4ab7a240a82ed2f029.tar.bz2 pfsense-packages-4d72c982b7cb1b2f24486a4ab7a240a82ed2f029.zip |
Iterate foreach loop correctly.
Submitted by xstas via forum.
http://forum.pfsense.org/index.php/topic,3089.0/topicseen.html
Diffstat (limited to 'packages/squid/squid.inc')
-rw-r--r-- | packages/squid/squid.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/squid/squid.inc b/packages/squid/squid.inc index fc705d52..7640ff39 100644 --- a/packages/squid/squid.inc +++ b/packages/squid/squid.inc @@ -79,7 +79,7 @@ function squid_dash_z() { if(!is_dir($cachedir.'/')) { log_error("Creating Squid cache dir $cachedir"); make_dirs($cachedir); - squid_chown_recursive($cachedir, 'proxy', 'proxy'); + squid_chown_recursive($cachedir, 'proxy', 'proxy'); } if(!is_dir($cachedir.'/00/')) { @@ -155,7 +155,7 @@ EOD; log_error("Reloading Squid for configuration sync"); mwexec("/usr/local/sbin/squid -k reconfigure"); } - + filter_configure(); } @@ -349,7 +349,7 @@ function squid_validate_auth($post, $input_errors) { $input_errors[] = 'The field \'RADIUS secret\' is required'; break; case 'msnt': - foreach (explode(trim($post['msnt_secondary'])) as $server) { + foreach (explode(',', trim($post['msnt_secondary'])) as $server) { if (!empty($server) && !is_ipaddr($server) && !is_domain($server)) $input_errors[] = "The host '$server' is not a valid IP address or domain name"; } @@ -394,7 +394,7 @@ function squid_resync_general() { $email = ($settings['admin_email'] ? $settings['admin_email'] : 'admin@localhost'); $logdir = ($settings['log_dir'] ? $settings['log_dir'] : '/var/squid/log'); - + $logdir_cache = $logdir . '/cache.log'; $logdir_access = ($settings['log_enabled'] == 'on' ? $logdir . '/access.log' : '/dev/null'); |