From 52269956a37a6e99fc173a3cd2551fa5eba8ac2d Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Tue, 30 Mar 2010 10:22:30 +0000 Subject: [PATCH] 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 --- wp-includes/class-http.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/class-http.php b/wp-includes/class-http.php index a25abf265f..6f2305a05c 100644 --- a/wp-includes/class-http.php +++ b/wp-includes/class-http.php @@ -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;