Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/24/2024 02:07:17 PM (2 years ago)
Author:
espellcaste
Message:

WPCS: The modified code addresses all WordPress.Security.SafeRedirect issues in the codebase.

All redirects in the codebase are now using the wp_safe_redirect() function, which validates and sanitizes the URLs, improving the overall security of the application.

Props imath
See #7228
Closes ​https://github.com/buddypress/buddypress/pull/290

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-members/bp-members-functions.php

    r13799 r13871  
    26302630
    26312631                // Redirect user to login page.
    2632                 wp_redirect( $login_url );
    2633                 die();
     2632                wp_safe_redirect( $login_url );
     2633                exit;
    26342634        }
    26352635}
Note: See TracChangeset for help on using the changeset viewer.