Changeset 51822 for trunk/src/wp-includes/class-wp-http-cookie.php
- Timestamp:
- 09/18/2021 07:54:30 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-http-cookie.php
r48576 r51822 188 188 // Host - very basic check that the request URL ends with the domain restriction (minus leading dot). 189 189 $domain = ( '.' === substr( $domain, 0, 1 ) ) ? substr( $domain, 1 ) : $domain; 190 if ( substr( $url['host'], -strlen( $domain ) ) != $domain ) {190 if ( substr( $url['host'], -strlen( $domain ) ) !== $domain ) { 191 191 return false; 192 192 } … … 198 198 199 199 // Path - request path must start with path restriction. 200 if ( substr( $url['path'], 0, strlen( $path ) ) != $path ) {200 if ( substr( $url['path'], 0, strlen( $path ) ) !== $path ) { 201 201 return false; 202 202 }
Note: See TracChangeset
for help on using the changeset viewer.