Changeset 37123
- Timestamp:
- 03/30/2016 03:51:01 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.7/src/wp-includes/http.php
r36443 r37123 473 473 if ( ! $same_host ) { 474 474 $host = trim( $parsed_url['host'], '.' ); 475 if ( preg_match( '#^ \d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$#', $host ) ) {475 if ( preg_match( '#^(([1-9]?\d|1\d\d|25[0-5]|2[0-4]\d)\.){3}([1-9]?\d|1\d\d|25[0-5]|2[0-4]\d)$#', $host ) ) { 476 476 $ip = $host; 477 477 } else {
Note: See TracChangeset
for help on using the changeset viewer.