mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-19 19:22:14 +02:00
Do not try to db_escape() an SQL field.
This commit is contained in:
parent
4e9d166765
commit
0b66cd6bd2
@ -1660,7 +1660,8 @@ function db_assoc($result) {
|
||||
*/
|
||||
function db_delete($table, $where, $delete, $additionalwhere='') {
|
||||
$table = table_by_key($table);
|
||||
$query = "DELETE FROM $table WHERE " . escape_string($where) . "='" . escape_string($delete) . "' " . $additionalwhere;
|
||||
|
||||
$query = "DELETE FROM $table WHERE $where ='" . escape_string($delete) . "' " . $additionalwhere;
|
||||
$result = db_query($query);
|
||||
|
||||
if ($result['rows'] >= 1) {
|
||||
|
Loading…
Reference in New Issue
Block a user