Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
Guilherme Filippo
ISPConfig 3
Commits
b6912ffe
Commit
b6912ffe
authored
Sep 16, 2010
by
tbrehm
Browse files
Fixed: FS#1298 - mailfilter saving file in DOS format causing script to error
parent
b0dec8db
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/plugins-available/maildrop_plugin.inc.php
View file @
b6912ffe
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment