security/clamav: fix more bugs with log viewer

Now we have enough to call it 1.5.
This commit is contained in:
Franco Fichtner
2018-02-12 06:43:23 +00:00
parent 83464cf82b
commit 3d852798e8
4 changed files with 11 additions and 12 deletions
+1 -2
View File
@@ -1,6 +1,5 @@
PLUGIN_NAME= clamav
PLUGIN_VERSION= 1.4
PLUGIN_REVISION= 1
PLUGIN_VERSION= 1.5
PLUGIN_COMMENT= Antivirus engine for detecting malicious threats
PLUGIN_DEPENDS= clamav
PLUGIN_MAINTAINER= m.muenz@gmail.com
@@ -4,6 +4,7 @@
<patterns>
<pattern>ui/clamav/*</pattern>
<pattern>api/clamav/*</pattern>
<pattern>diag_logs_clamav.php*</pattern>
</patterns>
</page-services-clamav>
</acl>
@@ -1,8 +1,10 @@
<menu>
<Services>
<ClamAV cssClass="fa fa-stethoscope">
<Configuration order="10" url="/ui/clamav/general/index"/>
<LogFile VisibleName="Log File" order="20" url="/diag_logs_clamav.php"/>
</ClamAV>
</Services>
<Services>
<ClamAV cssClass="fa fa-stethoscope">
<Configuration order="10" url="/ui/clamav/general/index"/>
<Log VisibleName="Log File" order="20" url="/diag_logs_clamav.php?type=clamd">
<More url="/diag_logs_clamav.php*" visibility="hidden"/>
</Log>
</ClamAV>
</Services>
</menu>
+1 -4
View File
@@ -7,10 +7,7 @@ if (isset($_GET['type']) && ($_GET['type'] === 'clamd' || $_GET['type'] === 'fre
$logfile = "/var/log/clamav/{$type}.log";
$logclog = false;
if ($type == 'clamd') {
$logsplit = 2;
}
$logsplit = 5;
$logpills = array();
$logpills[] = array(gettext('Clamd'), true, '/diag_logs_clamav.php?type=clamd');