Skip to:
Content

bbPress.org

Changeset 4895


Ignore:
Timestamp:
05/07/2013 11:00:19 PM (13 years ago)
Author:
nacin
Message:

When preparing a search term for bb_get_title(), strip slashes, as our data comes directly from the slashed superglobals.

fixes https://core.trac.wordpress.org/ticket/17304.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.1/bb-includes/functions.bb-template.php

    r3847 r4895  
    507507                if ( !$q = trim( @$_GET['q'] ) )
    508508                    break;
     509            $q = stripslashes( $q );
    509510            $title[] = sprintf( __( 'Search for %s' ), esc_html( $q ) );
    510511            break;
Note: See TracChangeset for help on using the changeset viewer.