WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/08/2014 05:57:15 AM (7 years ago)
Author:
dd32
Message:

Correctly support Schemeless URLs in WP_HTTP::make_absolute_url() by respecting the 'host' field if present in the relative url.
Fixes #29886

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/http/http.php

    r29850 r29851  
    6262            array( '/expected', 'http://example.com/sub/http://site.com/sub/', 'http://example.com/expected' ),
    6363            array( '/expected/http://site.com/sub/', 'http://example.com/', 'http://example.com/expected/http://site.com/sub/' ),
     64
     65            // Schemeless URL's (Not valid in HTTP Headers, but may be used elsewhere)
     66            array( '//example.com/sub/', 'https://example.net', 'https://example.com/sub/' ),
    6467        );
    6568    }
Note: See TracChangeset for help on using the changeset viewer.