Skip to:
Content

BuddyPress.org

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#5772 closed defect (bug) (fixed)

No 404 on registration subpage

Reported by: SGr33n Owned by: djpaul
Milestone: 2.1 Priority: normal
Severity: normal Version:
Component: Core Keywords:
Cc:

Description

Hi,

If you try to load a page like www.buddypress.org/registration/test/ it will not send you to a 404 page, instead it will show the registration page.

Change History (3)

#1 @DJPaul
5 years ago

  • Milestone changed from Awaiting Review to 2.1

#2 @djpaul
5 years ago

  • Owner set to djpaul
  • Resolution set to fixed
  • Status changed from new to closed

In 8658:

Core: match the registration route precisely.

Previously, you could enter the registration route with non-existent
parts, such as /registration/test/, and BuddyPress would serve up the
registration template.

By checking if bp_current_action() is set (the /test/ part), we can
bail out of bp_core_screen_signup(). BuddyPress will correctly 404
these incorrect URLs.

Fixes #5772

#3 @DJPaul
5 years ago

Bah, typo'd the commit message (should be /register/test/).

Note: See TracTickets for help on using tickets.