Skip to:

Opened 11 years ago

Closed 10 years ago

#3040 closed defect (bug) (fixed)

Encoding mismatch in activity feed item title

Reported by: dubcheck Owned by:
Milestone: 1.5 Priority: normal
Severity: Version: 1.2.6
Component: Activity Keywords: close


In 'bp_get_activity_feed_item_title' a short activity info is build which consists of two parts: the part before the colon (let's call it 'title') and the part after (the 'excerpt'). These to parts are encoded differently which results in weird characters in either of the parts when output to the browser.

I had no time to go into it deeper but it seems to me that the 'utf8_encode' should be removed in the following line (1031):

$title = trim( strip_tags( html_entity_decode( utf8_encode( $content[0] ) ) ) );

Changing it to

$title = trim( strip_tags( html_entity_decode( $content[0] ) ) );

works fine for me and both parts are encoded the same way.

Please cross-check and fix in bp-activity/bp-activity-templatetags.php

NB: I use version 1.2.7 but cannot select in ticket form ..

Change History (3)

#1 @cnorris23
11 years ago

  • Keywords close added; encoding removed

Related: #2194. Leaving it open for now, but 2194 should fix things.

#2 @DJPaul
11 years ago

  • Milestone changed from Awaiting Review to 1.3

#3 @boonebgorges
10 years ago

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

(In [4376]) Makes the sanitization of RSS title text consistent. Fixes #3040

Note: See TracTickets for help on using tickets.