Commit b6912ffe authored by tbrehm's avatar tbrehm
Browse files

Fixed: FS#1298 - mailfilter saving file in DOS format causing script to error

parent b0dec8db
......@@ -196,6 +196,9 @@ class maildrop_plugin {
}
$mailfilter_content .= $data["new"]["custom_mailfilter"];
// Replace windows linebreaks in mailfilter file
$mailfilter_content = str_replace("\r\n","\n",$mailfilter_content);
file_put_contents($config_file_path,$mailfilter_content);
$app->log("Writing new custom Mailfiter".$config_file_path,LOGLEVEL_DEBUG);
chmod($config_file_path, 0770);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment