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:
Dion Hulse 2010-03-30 10:22:30 +00:00
parent e6e9ad218d
commit 52269956a3
1 changed files with 1 additions and 0 deletions

View File

@ -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;