Is there a way to backport it to older 2.2.x versions
Security fixes are usually released as hotfix packages so people with expired licenses can update without having to go through hoops and license renewals.
I upgraded to patch 1 on the 13th. Is there additional changes since then? I found yesterday's announcement to be a bit confusing...Thank you @XenForo
XenForo 2.2.10 Patch 1 Released
XenForo 2.2.10 Released XenForo 2.2.10 is now available for all licensed customers to download. We strongly recommend that all customers running previous versions of XenForo 2.2 upgrade to this release to benefit from increased stability. This version contains a fix for an issue whereby...xenforo.com
php cmd.php xf-addon:sync-json XF
php cmd.php xf-addon:sync-json XF
addon.json
into the database and when doing you are not really syncing the hashes.json
.You will need to manually correct the file or just use this add-on by @Ozzy47 to not get bothered about that specific file.How could I re-generate XF's hashes.json file so the file health checker is happy again?
Alright, that I could do.You will need to manually correct the file
+------------------------------------------+--------------+
| XenForo |
+------------------------------------------+--------------+
| File path | Status |
+------------------------------------------+--------------+
| src/XF/Http/ca-bundle-legacy-openssl.crt | Inconsistent |
| src/XF/Http/ca-bundle.crt | Inconsistent |
| src/XF/Http/Reader.php | Inconsistent |
| src/XF/Util/Ip.php | Inconsistent |
+------------------------------------------+--------------+
"src/XF/Http/ca-bundle-legacy-openssl.crt": "138da9088350cf5a2ce6c47b1fa27d33d2ac60b9fc1460376d40e4a0cb24eeee",
"src/XF/Http/ca-bundle.crt": "08df40e8f528ed283b0e480ba4bcdbfdd2fdcf695a7ada1668243072d80f8b6f",
"src/XF/Util/Ip.php": "9ef8e90620aadde52a82b1dd52f231d5d7bdd335334ba57441cbcdf0e6fe48c8",
"src/XF/Http/Reader.php": "9aa754540eb4a118ca724b5ad645fa4cc39a5779a12793db6d673f59b748bf96",
<?php
// https://stackoverflow.com/questions/24783862/list-all-the-files-and-folders-in-a-directory-with-php-recursive-function
function getDirContents($dir, &$results = array()) {
$files = scandir($dir);
foreach ($files as $key => $value) {
$path = realpath($dir . DIRECTORY_SEPARATOR . $value);
if (!is_dir($path)) {
$results[] = $path;
} else if ($value != "." && $value != "..") {
getDirContents($path, $results);
//$results[] = $path;
}
}
return $results;
}
$list = getDirContents(__DIR__.'/src');
$res = array();
foreach($list as $current) {
$cleanName = str_replace(__DIR__, '', $current);
$res[] = array(
'path' => $cleanName,
'hash' => hashThatFile($current),
);
}
print_r($res);
function hashThatFile($path) {
$contents = file_get_contents($path);
$contents = str_replace("\r", '', $contents);
return hash('sha256', $contents);
}
"src/XF/BbCode/Renderer/EditorHtml.php": "05bc7595432c3ebd0d05a7b005d9928ee60f538212ee6d40b0f4008620ec1036",
We use essential cookies to make this site work, and optional cookies to enhance your experience.