Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/11/2015 08:04:49 PM (9 years ago)
Author:
johnjamesjacoby
Message:

Core: in bp_verify_nonce_request() pass correct schemes into home_url()

See #BB2492, #6528.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-functions.php

    r10044 r10046  
    20412041    // Parse home_url() into pieces to remove query-strings, strange characters,
    20422042    // and other funny things that plugins might to do to it.
    2043     $parsed_home = parse_url( home_url( '/', ( is_ssl() ? 'https://' : 'http://' ) ) );
    2044 
    2045     // Maybe include the port, if it's included
     2043    $parsed_home = parse_url( home_url( '/', ( is_ssl() ? 'https' : 'http' ) ) );
     2044
     2045    // Maybe include the port, if it's included in home_url()
    20462046    if ( isset( $parsed_home['port'] ) ) {
    20472047        $parsed_host = $parsed_home['host'] . ':' . $parsed_home['port'];
Note: See TracChangeset for help on using the changeset viewer.