Skip to:
Content

BuddyPress.org

Opened 17 years ago

Closed 16 years ago

#1410 closed defect (bug) (fixed)

Groups - excerpt makes invalid links - has-patch

Reported by: petronic Owned by:
Priority: major Milestone: 1.2.4
Component: Core Version:
Severity: Keywords:
Cc: petronic

Description

When you add URL in group description, then excerpt in groups directory listing and in random group makes invalid links.

For example, I added this text as group description:

Test link
​http://pcgames.de

From that, excerpt makes:

Test link
<br/>
<a href="\"​http://pcgames.de\"">​http://pcgames.de</a>

You can see example here:
​http://testbp.org/groups/?s=Test+-+Link+in+description

Problem is in doing double "wp_filter_kses" since bp_the_site_group_description_excerpt() calls
bp_get_group_description()

and on both "wp_filter_kses" filter is applied:

add_filter( 'bp_get_group_description', 'wp_filter_kses', 1 );
add_filter( 'bp_get_the_site_group_description_excerpt', 'wp_filter_kses', 1 );

Attachments (1)

patch.diff​ (724 bytes ) - added by petronic 17 years ago.

Download all attachments as: .zip

Change History (3)

@petronic
17 years ago

#1 @johnjamesjacoby
16 years ago

  • Component → Core
  • Milestone → 1.2.4

#2 @johnjamesjacoby
16 years ago

  • Resolution → fixed
  • Status new → closed

Fixed in 1.2.

Note: See TracTickets for help on using tickets.