From 214d6b2ab0b546b0bacd705301c773683470aefc Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Mon, 22 Feb 2010 18:45:45 +0000 Subject: [PATCH] Fix notice in WP_Http. Fixes #12316 props sivel. git-svn-id: https://develop.svn.wordpress.org/trunk@13302 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 );