[buddypress-trac] [BuddyPress Trac] #8236: `empty()` check for activity content after kses filtering

buddypress-trac noreply at wordpress.org
Sat Feb 15 21:26:24 UTC 2020


#8236: `empty()` check for activity content after kses filtering
--------------------------+-----------------------------
 Reporter:  oztaser       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Activity      |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 The `BP_Activity_Activity()->save()` method inserts an activity with empty
 content If the whole activity content has not allowed HTML elements.
 Because `bp_activity_filter_kses` returns an empty value.

 I think we should check the activity content before running update/insert
 query.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8236>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list