Whitespace only Cookie pairs are not permitted; Skip them. Props josephscott. Fixes #12761
git-svn-id: https://develop.svn.wordpress.org/trunk@13887 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e6e9ad218d
commit
52269956a3
|
@ -1736,6 +1736,7 @@ class WP_Http_Cookie {
|
|||
|
||||
// Set everything else as a property
|
||||
foreach ( $pairs as $pair ) {
|
||||
$pair = rtrim($pair);
|
||||
if ( empty($pair) ) //Handles the cookie ending in ; which results in a empty final pair
|
||||
continue;
|
||||
|
||||
|
|
Loading…
Reference in New Issue