Make WordPress Core


Ignore:
Timestamp:
10/08/2014 05:37:56 AM (10 years ago)
Author:
dd32
Message:

Correctly handle url's containing url's in WP_HTTP::make_absolute_url().
A valid relative URL could be mistaken for an absolute url if it contained a : in any position of the url.
Fixes #28001

File:
1 edited

Legend:

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

    r25002 r29850  
    5757
    5858            // A file with a leading dot
    59             array( '.ext', 'http://example.com/', 'http://example.com/.ext' )
     59            array( '.ext', 'http://example.com/', 'http://example.com/.ext' ),
     60
     61            // URls within URLs
     62            array( '/expected', 'http://example.com/sub/http://site.com/sub/', 'http://example.com/expected' ),
     63            array( '/expected/http://site.com/sub/', 'http://example.com/', 'http://example.com/expected/http://site.com/sub/' ),
    6064        );
    6165    }
Note: See TracChangeset for help on using the changeset viewer.