Skip to:
Content

bbPress.org


Ignore:
Timestamp:
04/15/2015 02:21:32 PM (12 years ago)
Author:
johnjamesjacoby
Message:

Topics: Use sanitize_key() on select_id in dropdown helpers.

File:
1 edited

Legend:

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

    r5680 r5681  
    32913291                        // Post value is passed
    32923292                        if ( bbp_is_topic_form_post_request() && isset( $_POST[ $r['select_id'] ] ) ) {
    3293                                 $r['selected'] = $_POST[ $r['select_id'] ];
     3293                                $r['selected'] = sanitize_key( $_POST[ $r['select_id'] ] );
    32943294
    32953295                        // No Post value passed
    … …  
    33803380                        // Post value is passed
    33813381                        if ( bbp_is_topic_form_post_request() && isset( $_POST[ $r['select_id'] ] ) ) {
    3382                                 $r['selected'] = $_POST[ $r['select_id'] ];
     3382                                $r['selected'] = sanitize_key( $_POST[ $r['select_id'] ] );
    33833383
    33843384                        // No Post value was passed
Note: See TracChangeset for help on using the changeset viewer.