WordPress.org

Make WordPress Core

Changeset 46475


Ignore:
Timestamp:
10/14/2019 03:25:38 PM (5 weeks ago)
Author:
whyisjake
Message:

HTTP API: Protect against hex interpretation.

Return earlier from wp_http_validate_url().

Props: iandunn, xknown, voldemortensen, whyisjake.

File:
1 edited

Legend:

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

    r46468 r46475  
    551551            $ip = gethostbyname( $host );
    552552            if ( $ip === $host ) { // Error condition for gethostbyname()
    553                 $ip = false;
     553                return false;
    554554            }
    555555        }
Note: See TracChangeset for help on using the changeset viewer.