same for rules, eg. rejection mail can be multiple lines too

This commit is contained in:
Ralf Becker 2013-04-04 13:55:03 +00:00
parent 5cb0c8c2e0
commit 55ea0ef426

View File

@ -496,7 +496,7 @@ class emailadmin_script {
if ($rule['status'] != 'DELETED') {
$rule['action_arg'] = addslashes($rule['action_arg']);
// we need to handle \r\n here.
$rule['action_arg'] = preg_replace("/\r\n/","\\n",$rule['action_arg']);
$rule['action_arg'] = preg_replace("/\r?\n/","\\n",$rule['action_arg']);
/* reset priority value. note: we only do this
* for compatibility with Websieve. */
$rule['priority'] = $pcount;