mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
MDL-53366 antivirus_clamav: Remove Quarantine directory setting
This commit is contained in:
parent
ee61e3ef83
commit
ff67562eca
@ -25,7 +25,6 @@
|
||||
$string['configclamactlikevirus'] = 'Treat files like viruses';
|
||||
$string['configclamdonothing'] = 'Treat files as OK';
|
||||
$string['configclamfailureonupload'] = 'If you have configured clam to scan uploaded files, but it is configured incorrectly or fails to run for some unknown reason, how should it behave? If you choose \'Treat files like viruses\', they\'ll be moved into the quarantine area, or deleted. If you choose \'Treat files as OK\', the files will be moved to the destination directory like normal. Either way, admins will be alerted that clam has failed. If you choose \'Treat files like viruses\' and for some reason clam fails to run (usually because you have entered an invalid pathtoclam), ALL files that are uploaded will be moved to the given quarantine area, or deleted. Be careful with this setting.';
|
||||
$string['configquarantinedir'] = 'If you want ClamAV to move infected files to a quarantine directory, enter it here. It must be writable by the webserver. If you leave this blank, or if you enter a directory that doesn\'t exist or isn\'t writable, infected files will be deleted. Do not include a trailing slash.';
|
||||
$string['clamfailed'] = 'ClamAV has failed to run. The return error message was "{$a}". Here is the output from ClamAV:';
|
||||
$string['clamfailureonupload'] = 'On ClamAV failure';
|
||||
$string['errorcantopensocket'] = 'Connecting to Unix domain socket resulted in error {$a}';
|
||||
|
@ -47,10 +47,6 @@ if ($ADMIN->fulltree) {
|
||||
new lang_string('pathtounixsocket', 'antivirus_clamav'),
|
||||
new lang_string('pathtounixsocketdesc', 'antivirus_clamav'), '', PARAM_PATH));
|
||||
|
||||
// Quarantine directory path.
|
||||
$settings->add(new admin_setting_configdirectory('antivirus_clamav/quarantinedir',
|
||||
new lang_string('quarantinedir', 'antivirus_clamav'), new lang_string('configquarantinedir', 'antivirus_clamav'), ''));
|
||||
|
||||
// How to act on ClamAV failure.
|
||||
$options = array(
|
||||
'donothing' => new lang_string('configclamdonothing', 'antivirus_clamav'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user