1
0
Fork 0
mirror of synced 2024-05-20 20:52:36 +12:00

Updated antivirus spelling

This commit is contained in:
Matej Baco 2021-12-15 12:02:01 +01:00
parent ea7b5970c3
commit 24c2ef67d4
4 changed files with 14 additions and 14 deletions

View file

@ -351,7 +351,7 @@ App::get('/v1/health/anti-virus')
$output['status'] = 'disabled';
$output['version'] = '';
} else {
$antiVirus = new Network(App::getEnv('_APP_STORAGE_ANTIVIRUS_HOST', 'clamav'),
$antivirus = new Network(App::getEnv('_APP_STORAGE_ANTIVIRUS_HOST', 'clamav'),
(int) App::getEnv('_APP_STORAGE_ANTIVIRUS_PORT', 3310));
try {

View file

@ -98,10 +98,10 @@ App::post('/v1/storage/files')
$mimeType = $device->getFileMimeType($path); // Get mime-type before compression and encryption
if (App::getEnv('_APP_STORAGE_ANTIVIRUS') === 'enabled') { // Check if scans are enabled
$antiVirus = new Network(App::getEnv('_APP_STORAGE_ANTIVIRUS_HOST', 'clamav'),
$antivirus = new Network(App::getEnv('_APP_STORAGE_ANTIVIRUS_HOST', 'clamav'),
(int) App::getEnv('_APP_STORAGE_ANTIVIRUS_PORT', 3310));
if (!$antiVirus->fileScan($path)) {
if (!$antivirus->fileScan($path)) {
$device->delete($path);
throw new Exception('Invalid file', 403);
}
@ -652,11 +652,11 @@ App::delete('/v1/storage/files/:fileId')
// $source = $compressor->decompress($source);
// $antiVirus = new Network('clamav', 3310);
// $antivirus = new Network('clamav', 3310);
// //var_dump($antiVirus->ping());
// //var_dump($antiVirus->version());
// //var_dump($antiVirus->fileScan('/storage/uploads/app-1/5/9/f/e/59fecaed49645.pdf'));
// //var_dump($antivirus->ping());
// //var_dump($antivirus->version());
// //var_dump($antivirus->fileScan('/storage/uploads/app-1/5/9/f/e/59fecaed49645.pdf'));
// }
// );

View file

@ -113,17 +113,17 @@ $cli
if(App::getEnv('_APP_STORAGE_ANTIVIRUS') === 'enabled') { // Check if scans are enabled
try {
$antiVirus = new Network(App::getEnv('_APP_STORAGE_ANTIVIRUS_HOST', 'clamav'),
$antivirus = new Network(App::getEnv('_APP_STORAGE_ANTIVIRUS_HOST', 'clamav'),
(int) App::getEnv('_APP_STORAGE_ANTIVIRUS_PORT', 3310));
if((@$antiVirus->ping())) {
Console::success('AntiVirus...........connected 👍');
if((@$antivirus->ping())) {
Console::success('Antivirus...........connected 👍');
}
else {
Console::error('AntiVirus........disconnected 👎');
Console::error('Antivirus........disconnected 👎');
}
} catch (\Throwable $th) {
Console::error('AntiVirus........disconnected 👎');
Console::error('Antivirus........disconnected 👎');
}
}

View file

@ -714,13 +714,13 @@
<div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 520px; margin-left: 748px;">
<div style="box-sizing: border-box; font-size: 0; text-align: center; ">
<div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: #000000; line-height: 1.2; pointer-events: all; white-space: normal; word-wrap: normal; ">
AntiVirus (ClamAV)
Antivirus (ClamAV)
</div>
</div>
</div>
</foreignObject>
<text x="807" y="524" fill="#000000" font-family="Helvetica" font-size="12px" text-anchor="middle">
AntiVirus (ClamAV)
Antivirus (ClamAV)
</text>
</switch>
</g>

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 64 KiB