[buddypress-trac] [BuddyPress] #2670: bp_core_redirect and BP_ENABLE_USERNAME_COMPATIBILITY_MODE don't always work
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Thu Oct 7 21:56:38 UTC 2010
#2670: bp_core_redirect and BP_ENABLE_USERNAME_COMPATIBILITY_MODE don't always
work
--------------------+-------------------------------------------------------
Reporter: DJPaul | Owner:
Type: defect | Status: new
Priority: major | Milestone: 1.3
Component: Core | Keywords:
--------------------+-------------------------------------------------------
bp_core_redirect() is a wrapper for wp_redirect(). There is an issue when
BuddyPress tries to redirect a URL such as
"example.com/members/email at address.com/profile/edit/group/1/" when
BP_ENABLE_USERNAME_COMPATIBILITY_MODE is set. This URL happens when you go
to your profile and click "edit."
The preg_replace in wp_sanitize_redirect() strips the @ which breaks our
redirect. What about using user_nicename in the URLs instead of
user_login?
--
Ticket URL: <http://trac.buddypress.org/ticket/2670>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list