WordPress.org

Make WordPress Core

Ticket #16909: 16909.3.patch

File 16909.3.patch, 635 bytes (added by hakre, 4 years ago)

referer field

  • wp-includes/functions.php

    ### Eclipse Workspace Patch 1.0
    #P wordpress-trunk
     
    19611961 * @return string Referer field. 
    19621962 */ 
    19631963function wp_referer_field( $echo = true ) { 
    1964         $ref = esc_attr( $_SERVER['REQUEST_URI'] ); 
     1964        $url = ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; 
     1965        $ref = esc_attr( $url ); 
    19651966        $referer_field = '<input type="hidden" name="_wp_http_referer" value="'. $ref . '" />'; 
    19661967 
    19671968        if ( $echo )