Skip to:
Content

BuddyPress.org

Opened 10 years ago

Closed 10 years ago

#6139 closed defect (bug) (fixed)

Member type slug is not sanitized in bp_register_member_type()

Reported by: boonebgorges's profile boonebgorges Owned by: boonebgorges's profile boonebgorges
Milestone: 2.2 Priority: normal
Severity: normal Version:
Component: Core Keywords:
Cc:

Description

As reported by Offereins in #6138. register_post_type() etc run the primary type key through sanitize_slug(). This was left out of bp_register_member_type(), but it should be added for consistency, and to make sure we don't cause any problems with PHP's array functions by having keys with non-standard characters.

Change History (1)

#1 @boonebgorges
10 years ago

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

In 9371:

Sanitize member_type key in bp_register_member_type().

Props Offereins.
Fixes #6139.

Note: See TracTickets for help on using tickets.