diff options
author | D. V. Serg <dvserg@pfsense.org> | 2008-02-22 08:38:31 +0000 |
---|---|---|
committer | D. V. Serg <dvserg@pfsense.org> | 2008-02-22 08:38:31 +0000 |
commit | 6f8dcc0ca7264709e41408eab51277ebb718d88e (patch) | |
tree | 645c80768408a52f8aa4f532f3c4adb69948ced1 /packages/squidGuard | |
parent | 9261f5dc7afe273d4b149cf028e14c8eaecf3a93 (diff) | |
download | pfsense-packages-6f8dcc0ca7264709e41408eab51277ebb718d88e.tar.gz pfsense-packages-6f8dcc0ca7264709e41408eab51277ebb718d88e.tar.bz2 pfsense-packages-6f8dcc0ca7264709e41408eab51277ebb718d88e.zip |
Fix rew 2
Diffstat (limited to 'packages/squidGuard')
-rw-r--r-- | packages/squidGuard/squidguard_configurator.inc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/squidGuard/squidguard_configurator.inc b/packages/squidGuard/squidguard_configurator.inc index b589c42c..d3813c56 100644 --- a/packages/squidGuard/squidguard_configurator.inc +++ b/packages/squidGuard/squidguard_configurator.inc @@ -1002,7 +1002,9 @@ function sg_build_config() { } // log if (!empty($log_entr_added)) - sg_addlog("sg_build_config: added: \n $log_entr_added \n error: \n $log_entr_err "); + sg_addlog("sg_build_config: added: \n $log_entr_added"); + if (!empty($log_entr_err)) + sg_addlog("sg_build_config: ERROR: \n $log_entr_err "); else sg_addlog("sg_build_config: added: Nothing."); } @@ -1268,7 +1270,7 @@ function sg_check_config_data () { foreach($squidguard_config[FLD_REWRITES][FLD_ITEM] as $rw) { // check check name as unique and name format $rw_name = $rw[FLD_NAME]; - $s = check_name($dst_name); + $s = check_name($rw_name); if ($s) $check_log[] = "REWRITE '$rw_name' error: $s"; @@ -1790,7 +1792,7 @@ function check_name ($name) { $val = trim($name); if ((strlen($val) < 2) || (strlen($val) > 16)) - $err .= " Size of name must be between [2..16]."; + $err .= " Size of name '$val' must be between [2..16]."; // All symbols must be [a-zA-Z_0-9\-] First symbol = letter. if (!eregi("^([a-zA-Z]{1})([a-zA-Z_0-9\-]+)$", $val)) |