Skip to content

Issue #8: Added Checks API hook for checking hashes#9

Open
Peterburnett wants to merge 1 commit intomasterfrom
issue8
Open

Issue #8: Added Checks API hook for checking hashes#9
Peterburnett wants to merge 1 commit intomasterfrom
issue8

Conversation

@Peterburnett
Copy link
Copy Markdown
Collaborator

Closes Issue #8 .
Only concern is whether these are the correct thresholds

}

function tool_hashlegacy_security_checks() {
if (class_exists('\core\check\check') && class_exists('\core\check\result')) {
Copy link
Copy Markdown
Contributor

@brendanheywood brendanheywood Mar 17, 2020

Choose a reason for hiding this comment

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

do you need this? If the core lib doesn't exist this should never get called


class hashlegacy extends check {

const WARNING_THRESHOLD = 0.2;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'd probably make this much simpler and say any old hash is a warning, even a single one. We just want them removed

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.

2 participants