Making WordPress.org

Changeset 3776


Ignore:
Timestamp:
08/04/2016 09:36:39 PM (10 years ago)
Author:
coffee2code
Message:

Profiles Activity Handler: Check that 'user' and 'source' are provided in the request.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/profiles.wordpress.org/public_html/wp-content/plugins/wporg-profiles-activity-handler/wporg-profiles-activity-handler.php

    r3775 r3776  
    138138                        if ( ! bp_is_active( 'activity' ) ) {
    139139                                die( '-1 Activity component not activated' );
     140                        }
     141
     142                        if ( empty( $_POST['user'] ) ) {
     143                                die( '-1 No user specified.' );
     144                        }
     145
     146                        if ( empty( $_POST['source'] ) ) {
     147                                die( '-1 No source specified.' );
    140148                        }
    141149
Note: See TracChangeset for help on using the changeset viewer.