aboutsummaryrefslogtreecommitdiffstats
path: root/config/havp
diff options
context:
space:
mode:
authorSunStroke74 <andrey.b.nikitin@gmail.com>2014-12-24 15:13:39 +0500
committerSunStroke74 <andrey.b.nikitin@gmail.com>2014-12-24 15:13:39 +0500
commite35b8e2cddab228f43f588b5aa9a7236757452dc (patch)
treee6a70056b8243ec9538bc036a29f65db4b78a121 /config/havp
parentd0ec034cd9260656f7bc3506b68c78c9ee1b6235 (diff)
downloadpfsense-packages-e35b8e2cddab228f43f588b5aa9a7236757452dc.tar.gz
pfsense-packages-e35b8e2cddab228f43f588b5aa9a7236757452dc.tar.bz2
pfsense-packages-e35b8e2cddab228f43f588b5aa9a7236757452dc.zip
Change of find pattern in havp access log file
After switching from clamd to libclamav in havp.inc webConfigurator stop parsing of log file because of strong search pattern for clamd - "virus clamd:". Make it more universal.
Diffstat (limited to 'config/havp')
-rw-r--r--config/havp/havp.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/havp/havp.inc b/config/havp/havp.inc
index f6e37a3b..08937a2f 100644
--- a/config/havp/havp.inc
+++ b/config/havp/havp.inc
@@ -1702,7 +1702,7 @@ function havp_get_av_viruslog()
$log = explode("\n", $log);
$count = 0;
foreach($log as $ln) {
- if (substr_count(strtolower($ln), "virus clamd:"))
+ if (substr_count(strtolower($ln), "virus clam"))
$s[] = $ln;
}
}
@@ -1716,7 +1716,7 @@ function havp_get_av_statistic()
if (file_exists(HVDEF_HAVP_ACCESSLOG)) {
$log = file_get_contents(HVDEF_HAVP_ACCESSLOG);
- $count = substr_count(strtolower($log), "virus clamd:");
+ $count = substr_count(strtolower($log), "virus clam");
$s = "Found $count viruses (total).";
}