Skip to:
Content

bbPress.org

Changeset 7333


Ignore:
Timestamp:
07/01/2025 06:18:28 PM (15 months ago)
Author:
johnjamesjacoby
Message:

Search: use correct sanitization function inside of bbp_sanitize_search_request().

This change fixes a bug causing forum/topic/reply specific searches to fail when searching for more than 1 word, by swapping out sanitize_title() with sanitize_text_field().

Props dd32, aezazshekh.

In trunk, for 2.7.

Fixes #3516.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/search/functions.php

    r7298 r7333  
    136136
    137137        // Sanitize
    138         $retval = sanitize_title( trim( $terms ) );
     138        $retval = sanitize_text_field( $terms );
    139139
    140140        // Filter & return
Note: See TracChangeset for help on using the changeset viewer.