Skip to content

Commit 608d39f

Browse files
committed
HTTP API: Protect against hex interpretation.
Return earlier from wp_http_validate_url(). Props: iandunn, xknown, voldemortensen, whyisjake. Built from https://develop.svn.wordpress.org/trunk@46475 git-svn-id: http://core.svn.wordpress.org/trunk@46273 1a063a9b-81f0-0310-95a4-ce76da25c4cd
1 parent 946ec84 commit 608d39f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: wp-includes/http.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ function wp_http_validate_url( $url ) {
550550
} else {
551551
$ip = gethostbyname( $host );
552552
if ( $ip === $host ) { // Error condition for gethostbyname()
553-
$ip = false;
553+
return false;
554554
}
555555
}
556556
if ( $ip ) {

Diff for: wp-includes/version.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*
1414
* @global string $wp_version
1515
*/
16-
$wp_version = '5.3-beta3-46474';
16+
$wp_version = '5.3-beta3-46475';
1717

1818
/**
1919
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

0 commit comments

Comments
 (0)