Make WordPress Core

Ticket #34397: 34397.diff

File 34397.diff, 496 bytes (added by swissspidy, 11 years ago)
  • src/wp-includes/load.php

    diff --git src/wp-includes/load.php src/wp-includes/load.php
    index c785128..7623de8 100644
    function wp_fix_server_vars() {  
    8888                        }
    8989
    9090                        // Append the query string if it exists and isn't null
    91                         if ( ! empty( $_SERVER['QUERY_STRING'] ) ) {
     91                        if ( ! empty( $_SERVER['QUERY_STRING'] ) && ! parse_url( $_SERVER['REQUEST_URI'], PHP_URL_QUERY ) ) {
    9292                                $_SERVER['REQUEST_URI'] .= '?' . $_SERVER['QUERY_STRING'];
    9393                        }
    9494                }