Skip to content

Commit 18bf31c

Browse files
authored
[5.4] Fix xml sha verification (joomla#44336)
1 parent f148b0a commit 18bf31c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/src/Installer/InstallerHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ public static function isChecksumValid($packagefile, $updateObject)
352352
foreach ($hashes as $hash) {
353353
if ($updateObject->get($hash, false)) {
354354
$hashPackage = hash_file($hash, $packagefile);
355-
$hashRemote = $updateObject->$hash->_data;
355+
$hashRemote = trim($updateObject->$hash->_data);
356356
$hashOnFile = true;
357357

358358
if ($hashPackage !== strtolower($hashRemote)) {

0 commit comments

Comments
 (0)