Whitespace only Cookie pairs are not permitted; Skip them. Props josephscott. Fixes #12761
git-svn-id: http://svn.automattic.com/wordpress/trunk@13887 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
fab0607ee4
commit
33b86da7ce
|
@ -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