Skip to:
Content

bbPress.org


Ignore:
Timestamp:
04/19/2017 08:58:52 PM (2 years ago)
Author:
johnjamesjacoby
Message:

Anonymous: Improve $anonymous_data implementation:

  • Always treat it as an array, handling for false values was never used
  • Introduce _sanitize_ and _update_ partner functions for the existing _filter_ function
  • Ensure that cookies and meta-data values are stripped of invalid characters in the same way that anonymous comments are, to prevent inconsistencies between anonymous forum and commenter cookie data
  • Update surrounding documentation blocks
  • Prefer strict type-casting and is_array() comparisons
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/admin/topics.php

    r6397 r6400  
    541541        // Bail if not a post request
    542542        if ( ! bbp_is_post_request() ) {
     543            return $topic_id;
     544        }
     545
     546        // Check action exists
     547        if ( empty( $_POST['action'] ) ) {
    543548            return $topic_id;
    544549        }
Note: See TracChangeset for help on using the changeset viewer.