Changeset 55988 for trunk/src/wp-includes/class-wp-http.php
- Timestamp:
- 06/22/2023 02:34:56 PM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-http.php
r55827 r55988 722 722 */ 723 723 for ( $i = count( $headers ) - 1; $i >= 0; $i-- ) { 724 if ( ! empty( $headers[ $i ] ) && false === strpos( $headers[ $i ], ':' ) ) {724 if ( ! empty( $headers[ $i ] ) && ! str_contains( $headers[ $i ], ':' ) ) { 725 725 $headers = array_splice( $headers, $i ); 726 726 break; … … 735 735 } 736 736 737 if ( false === strpos( $tempheader, ':' ) ) {737 if ( ! str_contains( $tempheader, ':' ) ) { 738 738 $stack = explode( ' ', $tempheader, 3 ); 739 739 $stack[] = ''; … … 906 906 $accessible_hosts = preg_split( '|,\s*|', WP_ACCESSIBLE_HOSTS ); 907 907 908 if ( false !== strpos( WP_ACCESSIBLE_HOSTS, '*' ) ) {908 if ( str_contains( WP_ACCESSIBLE_HOSTS, '*' ) ) { 909 909 $wildcard_regex = array(); 910 910 foreach ( $accessible_hosts as $host ) { … … 1097 1097 } 1098 1098 1099 if ( false !== strpos( $maybe_ip, ':' ) && preg_match( '/^(((?=.*(::))(?!.*\3.+\3))\3?|([\dA-F]{1,4}(\3|:\b|$)|\2))(?4){5}((?4){2}|(((2[0-4]|1\d|[1-9])?\d|25[0-5])\.?\b){4})$/i', trim( $maybe_ip, ' []' ) ) ) {1099 if ( str_contains( $maybe_ip, ':' ) && preg_match( '/^(((?=.*(::))(?!.*\3.+\3))\3?|([\dA-F]{1,4}(\3|:\b|$)|\2))(?4){5}((?4){2}|(((2[0-4]|1\d|[1-9])?\d|25[0-5])\.?\b){4})$/i', trim( $maybe_ip, ' []' ) ) ) { 1100 1100 return 6; 1101 1101 }
Note: See TracChangeset
for help on using the changeset viewer.