mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2026-11-20 23:43:26 +03:00
Merge pull request #124 from sitilge/master
Password reset - fix invalid DB query (double backtick)
This commit is contained in:
1 file changed
+1
-1
@@ -63,7 +63,7 @@ if ($_SERVER['REQUEST_METHOD'] === "POST") {
|
||||
if ($token !== false) {
|
||||
|
||||
$table = table_by_key($context === 'users' ? 'mailbox' : 'admin');
|
||||
$result = db_query("SELECT * FROM `$table` WHERE username='$tUsername'");
|
||||
$result = db_query("SELECT * FROM $table WHERE username='$tUsername'");
|
||||
$row = db_array($result['result']);
|
||||
|
||||
$email_other = trim($row['email_other']);
|
||||
|
||||
Reference in new issue
Block a user