Skip to:
Content

Changeset 4895


Ignore:
Timestamp:
05/07/13 23:00:19 (12 months 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.