Skip to:
Content

BuddyPress.org

Changeset 10991


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

Settings: use hash_equals() to update user profile (2.6 branch).

File:
1 edited

Legend:

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

    r10800 r10991  
    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.