aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorMarcello Coutinho <marcellocoutinho@gmail.com>2012-05-07 15:25:22 -0300
committermarcelloc <marcellocoutinho@gmail.com>2012-05-07 15:25:22 -0300
commitd9bb4967f4234993efab65bf22bcb60e3e621cc4 (patch)
tree3647a276001ad63d8966a80cbaadfd492ad9a452 /config
parentaf9133e026a27b5007c268c4b6598a9b4d89ee31 (diff)
downloadpfsense-packages-d9bb4967f4234993efab65bf22bcb60e3e621cc4.tar.gz
pfsense-packages-d9bb4967f4234993efab65bf22bcb60e3e621cc4.tar.bz2
pfsense-packages-d9bb4967f4234993efab65bf22bcb60e3e621cc4.zip
sarg -fix exclude_string and exclude_codes declaration on sarg.conf
Diffstat (limited to 'config')
-rw-r--r--config/sarg/sarg.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/sarg/sarg.inc b/config/sarg/sarg.inc
index e650efd6..2bcd4115 100644
--- a/config/sarg/sarg.inc
+++ b/config/sarg/sarg.inc
@@ -209,7 +209,7 @@ function sync_package_sarg() {
$date_format=(empty($sarg['report_date_format'])?"u":$sarg['report_date_format']);
$report_type=preg_replace('/,/',' ',$sarg['report_type']);
$report_charset=(empty($sarg['report_charset'])?"UTF-8":$sarg['report_charset']);
- $exclude_string=(empty($sarg['exclude_string'])?"":'exclude_string"'.$sarg['exclude_string']."'");
+ $exclude_string=(empty($sarg['exclude_string'])?"":'exclude_string "'.$sarg['exclude_string'].'"');
#limits
$max_elapsed=(empty($sarg['max_elapsed'])?"0":$sarg['max_elapsed']);
@@ -257,7 +257,7 @@ function sync_package_sarg() {
include("/usr/local/pkg/sarg.template");
file_put_contents("/usr/local/etc/sarg/sarg.conf", $sg, LOCK_EX);
file_put_contents('/usr/local/etc/sarg/exclude_hosts.conf', sarg_text_area_decode($sarg['exclude_hostlist']),LOCK_EX);
- file_put_contents('/usr/local/etc/sarg/exclude_codes.conf', sarg_text_area_decode($sarg['exclude_codelist']),LOCK_EX);
+ file_put_contents('/usr/local/etc/sarg/exclude_codes', sarg_text_area_decode($sarg['exclude_codelist']),LOCK_EX);
file_put_contents('/usr/local/etc/sarg/hostalias',sarg_text_area_decode($sarg['hostalias']),LOCK_EX);
file_put_contents('/usr/local/etc/sarg/exclude_users.conf', sarg_text_area_decode($sarguser['exclude_userlist']),LOCK_EX);