Commit 0c008cf1 authored by tbrehm's avatar tbrehm
Browse files

Changed fix for: FS#754 - mailfilter problem

parent 3583ff21
......@@ -70,7 +70,7 @@ class page_action extends tform_actions {
$mailuser = $app->db->queryOneRecord("SELECT sys_groupid, custom_mailfilter FROM mail_user WHERE mailuser_id = ".$this->dataRecord["mailuser_id"]);
$rule_content = $mailuser['custom_mailfilter']."\n".$app->db->quote($this->getRule());
$rule_content = mysql_real_escape_string($rule_content);
$rule_content = $app->db->quote($rule_content);
$app->db->datalogUpdate('mail_user', "custom_mailfilter = '$rule_content'", 'mailuser_id', $this->dataRecord["mailuser_id"]);
// set permissions
......@@ -105,7 +105,7 @@ class page_action extends tform_actions {
$out .= $this->getRule();
}
$out = mysql_real_escape_string($out);
$out = $app->db->quote($out);
$app->db->datalogUpdate('mail_user', "custom_mailfilter = '$out'", 'mailuser_id', $this->dataRecord["mailuser_id"]);
}
......
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