Changeset 37120 for branches/4.0/src/wp-includes/http.php
- Timestamp:
- 03/30/2016 03:50:51 PM (10 years ago)
- File:
-
- 1 edited
-
branches/4.0/src/wp-includes/http.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.0/src/wp-includes/http.php
r36440 r37120 466 466 if ( ! $same_host ) { 467 467 $host = trim( $parsed_url['host'], '.' ); 468 if ( preg_match( '#^ \d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$#', $host ) ) {468 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 ) ) { 469 469 $ip = $host; 470 470 } else {
Note: See TracChangeset
for help on using the changeset viewer.