Opened 14 years ago
Closed 13 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 |
Cc: |
Description
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 ..
Related: #2194. Leaving it open for now, but 2194 should fix things.