Skip to content

Commit 496a43b

Browse files
committed
Fixed bug: getmail config files are not written.
1 parent cdf85ea commit 496a43b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interface/web/mail/mail_get_edit.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function onSubmit() {
9292
} // end if user is not admin
9393

9494
// Set the server ID according to the selected destination
95-
$tmp = $app->db->queryOneRecord("SELECT server_id FROM mail_user WHERE email = '".mysql_real_escape_string($this->dataRecord["destination"])."'");
95+
$tmp = $app->db->queryOneRecord("SELECT server_id FROM mail_user WHERE email = '".$app->db->quote($this->dataRecord["destination"])."'");
9696
$this->dataRecord["server_id"] = $tmp["server_id"];
9797
unset($tmp);
9898

@@ -102,7 +102,7 @@ function onSubmit() {
102102
function onAfterInsert() {
103103
global $app;
104104

105-
$tmp = $app->db->queryOneRecord("SELECT sys_groupid FROM mail_user WHERE email = '".mysql_real_escape_string($this->dataRecord["destination"])."'");
105+
$tmp = $app->db->queryOneRecord("SELECT sys_groupid FROM mail_user WHERE email = '".$app->db->quote($this->dataRecord["destination"])."'");
106106
$app->db->query("update mail_get SET sys_groupid = ".$tmp['sys_groupid']." WHERE mailget_id = ".$this->id);
107107

108108
}

0 commit comments

Comments
 (0)