Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/opencart/opencart
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkerr committed Sep 14, 2024
2 parents 838fa33 + 4d50915 commit e59b620
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion upload/admin/controller/common/language.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function index(): string {
if (isset($this->request->cookie['language'])) {
$data['code'] = $this->request->cookie['language'];
} else {
$data['code'] = $this->config->get('config_language');
$data['code'] = $this->config->get('config_language_admin');
}

// Redirect
Expand Down
2 changes: 1 addition & 1 deletion upload/catalog/controller/checkout/confirm.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ public function index(): string {
'reward' => $product['reward']
];
}

$this->load->model('checkout/order');
if (!isset($this->session->data['order_id'])) {
$order_id = $this->model_checkout_order->addOrder($order_data);
} else {
Expand Down
1 change: 1 addition & 0 deletions upload/system/library/mail/smtp.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ public function send(): bool {
$header .= 'Reply-To: =?UTF-8?B?' . base64_encode($this->option['reply_to']) . '?= <' . $this->option['reply_to'] . '>' . PHP_EOL;
}

$header .= 'Message-ID: <' . base_convert(str_replace(['.', ' '], '', microtime()), 10, 36) . '.' . base_convert(bin2hex(openssl_random_pseudo_bytes(8)), 16, 36) . substr($this->option['from'], strrpos($this->option['from'], '@')) . '>' . PHP_EOL;
$header .= 'Return-Path: ' . $this->option['from'] . PHP_EOL;
$header .= 'X-Mailer: PHP/' . PHP_VERSION . PHP_EOL;
$header .= 'Content-Type: multipart/mixed; boundary="' . $boundary . '"' . PHP_EOL . PHP_EOL;
Expand Down

0 comments on commit e59b620

Please sign in to comment.