Changeset 11723 for trunk/src/bp-members/classes/class-bp-members-admin.php
- Timestamp:
- 11/02/2017 02:35:03 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-members/classes/class-bp-members-admin.php
r11703 r11723 681 681 // Conditionally add a referer if it exists in the existing request. 682 682 if ( ! empty( $_REQUEST['wp_http_referer'] ) ) { 683 $query_args['wp_http_referer'] = urlencode( stripslashes_deep( $_REQUEST['wp_http_referer'] ) ); 683 $wp_http_referer = wp_unslash( $_REQUEST['wp_http_referer'] ); 684 $wp_http_referer = wp_validate_redirect( esc_url_raw( $wp_http_referer ) ); 685 $query_args['wp_http_referer'] = urlencode( $wp_http_referer ); 684 686 } 685 687 … … 920 922 $wp_http_referer = false; 921 923 if ( ! empty( $_REQUEST['wp_http_referer'] ) ) { 922 $wp_http_referer = remove_query_arg( array( 'action', 'updated' ), $_REQUEST['wp_http_referer'] ); 924 $wp_http_referer = wp_unslash( $_REQUEST['wp_http_referer'] ); 925 $wp_http_referer = remove_query_arg( array( 'action', 'updated' ), $wp_http_referer ); 926 $wp_http_referer = wp_validate_redirect( esc_url_raw( $wp_http_referer ) ); 923 927 } 924 928 … … 1242 1246 1243 1247 // Add the referer. 1244 $args['wp_http_referer'] = urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ); 1248 $wp_http_referer = wp_unslash( $_SERVER['REQUEST_URI'] ); 1249 $wp_http_referer = wp_validate_redirect( esc_url_raw( $wp_http_referer ) ); 1250 $args['wp_http_referer'] = urlencode( $wp_http_referer ); 1245 1251 1246 1252 // Add the "Extended" link if the current user can edit this user.
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)