[Web] Allow to set global sieve filters

This commit is contained in:
andryyy
2020-03-19 12:23:48 +01:00
parent 32ef5508a0
commit e1897b0631
12 changed files with 193 additions and 16 deletions

View File

@@ -233,7 +233,7 @@ function rspamd($_action, $_data = null) {
$map_content = trim($_data['rspamd_map_data']);
$map_handle = fopen('/rspamd_custom_maps/' . $map, 'w');
if (!$map_handle) {
throw new Exception('File cannot be opened for writing.');
throw new Exception($lang['danger']['file_open_error']);
}
fwrite($map_handle, $map_content . PHP_EOL);
fclose($map_handle);