Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crypt::hashEquals #83

Closed
benlamptey opened this issue Oct 19, 2022 · 1 comment
Closed

Crypt::hashEquals #83

benlamptey opened this issue Oct 19, 2022 · 1 comment

Comments

@benlamptey
Copy link

                if (!Crypt::hashEquals($hash, $cookie_hash)) {
                    throw new Exception(
                        'Cookie hash invalid. This indicates either tampering or an out of date drupal4ssp module.'
                    );
                }

hashEquals no longer exists in Drupal 9, and it has been suggested to use PHP's built-in function hash_equals
https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Component%21Utility%21Crypt.php/function/Crypt%3A%3AhashEquals/8.9.x

@benlamptey benlamptey changed the title Crypt::hasEquals Crypt::hashEquals Oct 19, 2022
@benlamptey-gocity
Copy link

ignore - i can actually see this has been updated 2 years ago...must have been referencing an old version

@RoSk0 RoSk0 closed this as completed Apr 4, 2023
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

No branches or pull requests

3 participants