[Web] Allow to set global sieve filters
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user