Skip to:
Content

bbPress.org

Changeset 7508


Ignore:
Timestamp:
09/14/2026 06:21:50 PM (7 days ago)
Author:
johnjamesjacoby
Message:

Administration: Normalize forum list filter IDs.

Cast the forum filter value to an integer before passing it into numeric meta queries for topic and reply list tables.

This keeps identifier handling consistent with the filter dropdown and avoids passing untyped request data into the query layer.

This is a backport of [7507] to the 2.6 branch.

In branches/2.6, for 2.6.16.

Location:
branches/2.6
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2.6/CHANGELOG.md

    r7494 r7508  
    3838  longer access a restricted forum.
    3939- Hardened link relationship rewriting for topic and reply content.
     40- Normalized forum IDs used by administration list filters.
    4041- Restricted forum hierarchy and attribute changes to users with the appropriate forum authority.
    4142- Enforced bbPress posting and moderation rules for XML-RPC topic and reply
  • branches/2.6/src/includes/admin/replies.php

    r7436 r7508  
    10031003                        $query_vars['meta_key']   = '_bbp_forum_id';
    10041004                        $query_vars['meta_type']  = 'NUMERIC';
    1005                         $query_vars['meta_value'] = $_GET['bbp_forum_id'];
     1005                        $query_vars['meta_value'] = (int) $_GET['bbp_forum_id'];
    10061006                }
    10071007
  • branches/2.6/src/includes/admin/topics.php

    r7436 r7508  
    12151215                        $query_vars['meta_key']   = '_bbp_forum_id';
    12161216                        $query_vars['meta_type']  = 'NUMERIC';
    1217                         $query_vars['meta_value'] = $_GET['bbp_forum_id'];
     1217                        $query_vars['meta_value'] = (int) $_GET['bbp_forum_id'];
    12181218                }
    12191219
Note: See TracChangeset for help on using the changeset viewer.