Changes from branches/4.0/src/wp-includes/http.php at r30444 to trunk/src/wp-includes/http.php at r29230
- File:
-
- 1 edited
-
trunk/src/wp-includes/http.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/http.php
r30444 r29230 445 445 */ 446 446 function wp_http_validate_url( $url ) { 447 $original_url = $url;448 447 $url = wp_kses_bad_protocol( $url, array( 'http', 'https' ) ); 449 if ( ! $url || strtolower( $url ) !== strtolower( $original_url ))448 if ( ! $url ) 450 449 return false; 451 450 … … 457 456 return false; 458 457 459 if ( false !== strp brk( $parsed_url['host'], ':#?[]' ) )458 if ( false !== strpos( $parsed_url['host'], ':' ) ) 460 459 return false; 461 460 … … 475 474 if ( $ip ) { 476 475 $parts = array_map( 'intval', explode( '.', $ip ) ); 477 if ( 127 === $parts[0] || 10 === $parts[0] 476 if ( '127.0.0.1' === $ip 477 || ( 10 === $parts[0] ) 478 478 || ( 172 === $parts[0] && 16 <= $parts[1] && 31 >= $parts[1] ) 479 479 || ( 192 === $parts[0] && 168 === $parts[1] )
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)