Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/02/2017 02:50:03 PM (9 years ago)
Author:
boonebgorges
Message:

Improved handling of encoded characters when parsing AJAX querystring.

Props jdgrimes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress-functions.php

    r11651 r11725  
    689689        // Activity stream filtering on action.
    690690        if ( ! empty( $_BP_COOKIE['bp-' . $object . '-filter'] ) && '-1' != $_BP_COOKIE['bp-' . $object . '-filter'] ) {
    691                 $qs[] = 'type=' . $_BP_COOKIE['bp-' . $object . '-filter'];
     691                $qs[] = 'type=' . urlencode( $_BP_COOKIE['bp-' . $object . '-filter'] );
    692692
    693693                if ( bp_is_active( 'activity' ) ) {
    … …  
    712712                // Activity stream scope only on activity directory.
    713713                if ( 'all' != $_BP_COOKIE['bp-' . $object . '-scope'] && ! bp_displayed_user_id() && ! bp_is_single_item() )
    714                         $qs[] = 'scope=' . $_BP_COOKIE['bp-' . $object . '-scope'];
     714                        $qs[] = 'scope=' . urlencode( $_BP_COOKIE['bp-' . $object . '-scope'] );
    715715        }
    716716
Note: See TracChangeset for help on using the changeset viewer.