Make WordPress Core


Ignore:
Timestamp:
10/27/2024 07:03:48 PM (6 weeks ago)
Author:
SergeyBiryukov
Message:

Tests: Use better domain for HTTP API invalid hostname test.

The previous domain that was used to test for a host whose IPv4 address cannot be resolved, exampleeeee.com, got registered and has an A-record now, so it's not invalid anymore.

.invalid is intended for use in online construction of domain names that are sure to be invalid and which it is obvious at a glance are invalid.

Reference: Reserved Top Level DNS Names: TLDs for Testing, & Documentation Examples.

Follow-up to [52084], [58384], [58388].

Props sippis, johnbillion, MattyRob, swissspidy.
Fixes #62303.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/http.php

    r59009 r59293  
    536536 * - http:///example.com/caniload.php - Malformed URL.
    537537 * - http://user:pass@example.com/caniload.php - Login information.
    538  * - http://exampleeeee.com/caniload.php - Invalid hostname, as the IP cannot be looked up in DNS.
     538 * - http://example.invalid/caniload.php - Invalid hostname, as the IP cannot be looked up in DNS.
    539539 *
    540540 * Examples of URLs that are considered unsafe by default:
Note: See TracChangeset for help on using the changeset viewer.