Ticket #5319: ajax.php.patch
File ajax.php.patch, 526 bytes (added by , 11 years ago) |
---|
-
ajax.php
638 638 // Cast fid as an integer 639 639 $friend_id = (int) $_POST['fid']; 640 640 641 // Prevent POST request from member to himself 642 if ( bp_loggedin_user_id() == $friend_id ) 643 exit(); 644 641 645 // Trying to cancel friendship 642 646 if ( 'is_friend' == BP_Friends_Friendship::check_is_friend( bp_loggedin_user_id(), $friend_id ) ) { 643 647 check_ajax_referer( 'friends_remove_friend' );