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:
dd32 2010-03-30 10:22:30 +00:00
parent fab0607ee4
commit 33b86da7ce
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;