From 33b86da7cedf478a21cb5b66b815a72d494e6d22 Mon Sep 17 00:00:00 2001 From: dd32 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: http://svn.automattic.com/wordpress/trunk@13887 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 a25abf265..6f2305a05 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;