Skip to content

Conversation

@Hackwar
Copy link
Collaborator

@Hackwar Hackwar commented Apr 14, 2025

This PR adds CHECKSUM files for each extension. These files contain a list of all files of the respective extension and their respective sha256 hash. This should eventually allow Joomla to check the integrity of all files, once this has been added to the CMS. 😉

The language files in the global language folders are currently not added to the CHECKSUM file yet.

$output[] = $checksum . ' ' . $path;
}

return (bool) file_put_contents($target . '/CHECKSUM', implode("\n", $output));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this need to be uppercase?
cms uses 'checksums.txt'

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it doesn't have to be. I did a few google searches before implementing this and the suggestion was to use the uppercase version and to add the hash type as file extension. But either way, I'm not married to the filename. Just to create a standard now which the CMS can then adopt in a later version.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For me I don't care if it has an file extension as linux user, but other operating systems have some issues to open it in an editor without file extension. just saying

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants