Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/24/2016 02:45:08 PM (10 years ago)
Author:
boonebgorges
Message:

Better hash building for activation keys, password reset keys, and filenames.

There is no need to use user-facing info for these hashes.

Ports [10800] to the 2.5 branch.

Props DJPaul, vortfu.

Location:
branches/2.5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5

    • Property svn:mergeinfo changed
      /trunk (added)merged: 10800
  • branches/2.5/src/bp-members/bp-members-screens.php

    r10521 r10801  
    360360                }
    361361
    362                 $hashed_key = wp_hash( $key );
    363 
    364                 // Check if the signup avatar folder exists. If it does, move the folder to
    365                 // the BP user avatars directory.
    366                 if ( file_exists( bp_core_avatar_upload_path() . '/avatars/signups/' . $hashed_key ) ) {
    367                         @rename( bp_core_avatar_upload_path() . '/avatars/signups/' . $hashed_key, bp_core_avatar_upload_path() . '/avatars/' . $user );
    368                 }
    369 
    370362                bp_core_add_message( __( 'Your account is now active!', 'buddypress' ) );
    371363                $bp->activation_complete = true;
Note: See TracChangeset for help on using the changeset viewer.