From 5557d3e4f067a4d6bf033bf4c772058926621813 Mon Sep 17 00:00:00 2001 From: nacin Date: Mon, 22 Feb 2010 18:45:45 +0000 Subject: [PATCH] Fix notice in WP_Http. Fixes #12316 props sivel. git-svn-id: http://svn.automattic.com/wordpress/trunk@13302 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-http.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/class-http.php b/wp-includes/class-http.php index f9eee11362..d26795538a 100644 --- a/wp-includes/class-http.php +++ b/wp-includes/class-http.php @@ -1733,7 +1733,7 @@ class WP_Http_Cookie { if ( empty($pair) ) //Handles the cookie ending in ; which results in a empty final pair continue; - list( $key, $val ) = explode( '=', $pair ); + list( $key, $val ) = strpos( $pair, '=' ) ? explode( '=', $pair ) : array( $pair, '' ); $key = strtolower( trim( $key ) ); if ( 'expires' == $key ) $val = strtotime( $val );