Skip to:
Content

Changeset 6824


Ignore:
Timestamp:
05/29/2018 01:39:57 PM (4 weeks ago)
Author:
johnjamesjacoby
Message:

Search: update bbp_get_search_terms() to only accept a string.

This change prevents non-string payloads from being encoded & trimmed.

File:
1 edited

Legend:

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

    r6814 r6824  
    311311        }
    312312
    313         // Trim whitespace and decode, or set explicitly to false if empty
    314         $search_terms = ! empty( $search_terms )
     313        // Trim whitespace & decode if non-empty string, or set to false
     314        $search_terms = ! empty( $search_terms ) && is_string( $search_terms )
    315315            ? urldecode( trim( $search_terms ) )
    316316            : false;
Note: See TracChangeset for help on using the changeset viewer.