Skip to content

Commit

Permalink
Merge pull request #10542 from ADDCreative/php8-market
Browse files Browse the repository at this point in the history
Fix null credentials in marketplace for PHP 8
  • Loading branch information
mhcwebdesign committed Apr 30, 2022
2 parents f6d2d74 + cb44022 commit 9a5f6ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions upload/admin/controller/marketplace/marketplace.php
Expand Up @@ -108,9 +108,9 @@ public function index() {
$string .= VERSION . "\n";
$string .= $time . "\n";

$signature = base64_encode(hash_hmac('sha1', $string, $this->config->get('opencart_secret'), 1));
$signature = base64_encode(hash_hmac('sha1', $string, (string)$this->config->get('opencart_secret'), 1));

$url = '&username=' . urlencode($this->config->get('opencart_username'));
$url = '&username=' . urlencode((string)$this->config->get('opencart_username'));
$url .= '&domain=' . $this->request->server['HTTP_HOST'];
$url .= '&version=' . urlencode(VERSION);
$url .= '&time=' . $time;
Expand Down

0 comments on commit 9a5f6ae

Please sign in to comment.