Skip to content

Commit

Permalink
Merge pull request #332 from nextcloud/fortisandbox-support
Browse files Browse the repository at this point in the history
Fortisandbox support
  • Loading branch information
icewind1991 authored May 16, 2024
2 parents 302e331 + 9d1f051 commit 9f0636d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
This application inspects files that are uploaded to Nextcloud for viruses before they are written to the Nextcloud storage. If a file is identified as a virus, it is either logged or not uploaded to the server. The application relies on the underlying ClamAV virus scanning engine, which the admin points Nextcloud to when configuring the application. Alternatively, a Kaspersky Scan Engine can be configured, which has to run on a separate server.
For this app to be effective, the ClamAV virus definitions should be kept up to date. Also note that enabling this app will impact system performance as additional processing is required for every upload. More information is available in the Antivirus documentation.
]]></description>
<version>5.5.0</version>
<version>5.5.1</version>
<licence>agpl</licence>

<author>Manuel Delgado</author>
Expand Down
5 changes: 5 additions & 0 deletions js/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,11 @@ $(document).ready(function() {
service: 'req',
header: 'X-Virus-ID',
mode: 'reqmod',
},
fortisandbox: {
service: 'respmod',
header: 'X-Infection-Found',
mode: 'respmod',
}
}
$('#av_icap_preset').on('change', function(e) {
Expand Down
3 changes: 2 additions & 1 deletion lib/Scanner/ICAP.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ public function initScanner() {
"GET / HTTP/1.0",
"Host: 127.0.0.1"
], [
"HTTP/1.0 OK",
"HTTP/1.0 200 OK",
"Content-Length: 1", // a dummy, non-zero, content length seems to be enough
]);
}
}
Expand Down
1 change: 1 addition & 0 deletions templates/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
<option value="none" selected="selected"><?php p($l->t('Select'));?></option>
<option value="clamav">ClamAV / c-icap</option>
<option value="kaspersky">Kaspersky</option>
<option value="fortisandbox">FortiSandbox</option>
</select></td>
<td></td>
</tr>
Expand Down

0 comments on commit 9f0636d

Please sign in to comment.