Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/09/2017 12:43:21 AM (8 years ago)
Author:
johnjamesjacoby
Message:

General: ensure values are un/serialized as intended.

This change provides additional hardening around how some serialized data is manipulated while it's being passed around the application. (Some values were inconsistently or needlessly handled.)

Trunk, for 3.0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/classes/class-bp-activity-activity.php

    r11580 r11692  
    18331833        $favorite_activity_entries = bp_get_user_meta( $user_id, 'bp_favorite_activities', true );
    18341834        if ( ! empty( $favorite_activity_entries ) ) {
    1835             return count( maybe_unserialize( $favorite_activity_entries ) );
     1835            return count( $favorite_activity_entries );
    18361836        }
    18371837
Note: See TracChangeset for help on using the changeset viewer.