Skip to:
Content

BuddyPress.org

Changeset 10990


Ignore:
Timestamp:
08/04/2016 08:56:33 PM (9 years ago)
Author:
djpaul
Message:

Settings: use hash_equals() to update user profile.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-settings/bp-settings-actions.php

    r10800 r10990  
    445445
    446446        // Bail if the hash provided doesn't match the one saved in the database.
    447         if ( urldecode( $_GET['verify_email_change'] ) !== $pending_email['hash'] ) {
     447        if ( ! hash_equals( urldecode( $_GET['verify_email_change'] ), $pending_email['hash'] ) ) {
    448448            return;
    449449        }
Note: See TracChangeset for help on using the changeset viewer.