Skip to content

Commit

Permalink
Merge pull request #11024 from TheCartpenter/patch-920
Browse files Browse the repository at this point in the history
Added backward escaped quotes on total - catalog/model/account/customer.php file
  • Loading branch information
eka7a committed Jun 6, 2022
2 parents d5967b8 + 5540fa1 commit f3c747b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upload/catalog/model/account/customer.php
Expand Up @@ -125,7 +125,7 @@ public function addLoginAttempt(string $email): void {
if (!$query->num_rows) {
$this->db->query("INSERT INTO `" . DB_PREFIX . "customer_login` SET `email` = '" . $this->db->escape(utf8_strtolower((string)$email)) . "', `ip` = '" . $this->db->escape($this->request->server['REMOTE_ADDR']) . "', `total` = '1', `date_added` = '" . $this->db->escape(date('Y-m-d H:i:s')) . "', `date_modified` = '" . $this->db->escape(date('Y-m-d H:i:s')) . "'");
} else {
$this->db->query("UPDATE `" . DB_PREFIX . "customer_login` SET `total` = (total + 1), `date_modified` = '" . $this->db->escape(date('Y-m-d H:i:s')) . "' WHERE `customer_login_id` = '" . (int)$query->row['customer_login_id'] . "'");
$this->db->query("UPDATE `" . DB_PREFIX . "customer_login` SET `total` = (`total` + 1), `date_modified` = '" . $this->db->escape(date('Y-m-d H:i:s')) . "' WHERE `customer_login_id` = '" . (int)$query->row['customer_login_id'] . "'");
}
}

Expand Down

0 comments on commit f3c747b

Please sign in to comment.