Make WordPress Core

Ticket #19856: 19856.diff

File 19856.diff, 488 bytes (added by garyc40, 13 years ago)
  • wp-includes/functions.php

    function wp_get_referer() { 
    13331333        else if ( ! empty( $_SERVER['HTTP_REFERER'] ) )
    13341334                $ref = $_SERVER['HTTP_REFERER'];
    13351335
    1336         if ( $ref && $ref !== $_SERVER['REQUEST_URI'] )
     1336        if ( $ref && parse_url( $ref, PHP_URL_PATH ) !== $_SERVER['REQUEST_URI'] )
    13371337                return $ref;
    13381338        return false;
    13391339}