Changeset 47219 for trunk/src/wp-includes/class-wp-http-streams.php
- Timestamp:
- 02/09/2020 04:52:28 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-http-streams.php
r47122 r47219 56 56 $connect_host = $arrURL['host']; 57 57 58 $secure_transport = ( $arrURL['scheme'] == 'ssl' || $arrURL['scheme'] == 'https');58 $secure_transport = ( 'ssl' === $arrURL['scheme'] || 'https' === $arrURL['scheme'] ); 59 59 if ( ! isset( $arrURL['port'] ) ) { 60 if ( $arrURL['scheme'] == 'ssl' || $arrURL['scheme'] == 'https') {60 if ( 'ssl' === $arrURL['scheme'] || 'https' === $arrURL['scheme'] ) { 61 61 $arrURL['port'] = 443; 62 62 $secure_transport = true; … … 391 391 foreach ( $match_against as $match ) { 392 392 list( $match_type, $match_host ) = explode( ':', $match ); 393 if ( $host_type == strtolower( trim( $match_type ) )) { // IP: or DNS:393 if ( strtolower( trim( $match_type ) ) === $host_type ) { // IP: or DNS: 394 394 $certificate_hostnames[] = strtolower( trim( $match_host ) ); 395 395 }
Note: See TracChangeset
for help on using the changeset viewer.