mirror of
git://develop.git.wordpress.org/
synced 2025-03-24 22:10:02 +01:00
Coding Standards: Use strict comparison in wp-inclues/class-wp-http-cookie.php
.
Follow-up to [10512]. See #53359. git-svn-id: https://develop.svn.wordpress.org/trunk@51822 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ab9b51e5e3
commit
f386f6f5ed
@ -187,7 +187,7 @@ class WP_Http_Cookie {
|
||||
|
||||
// Host - very basic check that the request URL ends with the domain restriction (minus leading dot).
|
||||
$domain = ( '.' === substr( $domain, 0, 1 ) ) ? substr( $domain, 1 ) : $domain;
|
||||
if ( substr( $url['host'], -strlen( $domain ) ) != $domain ) {
|
||||
if ( substr( $url['host'], -strlen( $domain ) ) !== $domain ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -197,7 +197,7 @@ class WP_Http_Cookie {
|
||||
}
|
||||
|
||||
// Path - request path must start with path restriction.
|
||||
if ( substr( $url['path'], 0, strlen( $path ) ) != $path ) {
|
||||
if ( substr( $url['path'], 0, strlen( $path ) ) !== $path ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user