Making WordPress.org

Changeset 15328


Ignore:
Timestamp:
10/13/2026 07:59:54 PM (9 days ago)
Author:
bor0
Message:

Support Forums: Ignore non-string search query args

Closes ​https://github.com/WordPress/wordpress.org/pull/1050.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/functions.php

    r15277 r15328  
    14101410function bb_base_topic_search_query( $escaped = true ) {
    14111411
    1412         if ( empty( $_GET['ts'] ) ) {
     1412        if ( empty( $_GET['ts'] ) || ! is_string( $_GET['ts'] ) ) {
    14131413                return false;
    14141414        }
    … …  
    14241424function bb_base_reply_search_query( $escaped = true ) {
    14251425
    1426         if ( empty( $_GET['rs'] ) ) {
     1426        if ( empty( $_GET['rs'] ) || ! is_string( $_GET['rs'] ) ) {
    14271427                return false;
    14281428        }
    … …  
    14381438function bb_base_plugin_search_query( $escaped = true ) {
    14391439
    1440         if ( empty( $_GET['ps'] ) ) {
     1440        if ( empty( $_GET['ps'] ) || ! is_string( $_GET['ps'] ) ) {
    14411441                return false;
    14421442        }
Note: See TracChangeset for help on using the changeset viewer.