[buddypress-trac] [BuddyPress Trac] #7324: Comment reply php warnings

buddypress-trac noreply at wordpress.org
Fri Nov 4 14:21:02 UTC 2016


#7324: Comment reply php warnings
---------------------------+-----------------------------
 Reporter:  Jonas Lundman  |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  lowest         |  Milestone:  Awaiting Review
Component:  Core           |    Version:  2.7
 Severity:  normal         |   Keywords:
---------------------------+-----------------------------
 Issue in
 {{{
 bp_legacy_theme_delete_activity_comment()
 }}}


 This call:


 {{{
 $comment = new BP_Activity_Activity( $_POST['id'] );
 }}}


 is done before verifying the POST id :


 {{{
 if ( empty( $_POST['id'] ) || ! is_numeric( $_POST['id'] ) )
                 exit( '-1' );
 }}}


 PHP warnings breaks the response

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


More information about the buddypress-trac mailing list