Skip to content

Commit

Permalink
Merge pull request #8342 from sbulen/30_export_fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sesquipedalian authored Nov 11, 2024
2 parents 32449bc + 72bb256 commit e43eeb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/Actions/Profile/ExportDownload.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ protected function __construct()

$this->export_dir_slash = Config::$modSettings['export_dir'] . DIRECTORY_SEPARATOR;

$this->idhash = hash_hmac('sha1', Utils::$context['id_member'], Config::getAuthSecret());
$this->idhash = hash_hmac('sha1', (string) Utils::$context['id_member'], Config::getAuthSecret());
$this->dltoken = hash_hmac('sha1', $this->idhash, Config::getAuthSecret());

$this->part = isset($_GET['part']) ? (int) $_GET['part'] : 1;
Expand Down
2 changes: 1 addition & 1 deletion Sources/Tasks/ExportProfileData.php
Original file line number Diff line number Diff line change
Expand Up @@ -1267,7 +1267,7 @@ protected function exportHtml(): void

// Determine which files, if any, are ready to be transformed.
$export_dir_slash = Config::$modSettings['export_dir'] . DIRECTORY_SEPARATOR;
$idhash = hash_hmac('sha1', $this->_details['uid'], Config::getAuthSecret());
$idhash = hash_hmac('sha1', (string) $this->_details['uid'], Config::getAuthSecret());
$idhash_ext = $idhash . '.' . $this->_details['format_settings']['extension'];

$new_exportfiles = [];
Expand Down

0 comments on commit e43eeb8

Please sign in to comment.