Ticket #9101: 9101.diff
File 9101.diff, 746 bytes (added by , 16 years ago) |
---|
-
wp-includes/http.php
1374 1374 $value = substr( $pairs[0], strpos( $pairs[0], '=' ) + 1 ); 1375 1375 $this->name = $name; 1376 1376 $this->value = urldecode( $value ); 1377 array_shift( $pairs ); 1377 array_shift( $pairs ); //Removes name=value from items. 1378 1378 1379 1379 // Set everything else as a property 1380 1380 foreach ( $pairs as $pair ) { 1381 if ( empty($pair) ) //Handles the cookie ending in ; which results in a empty final pair 1382 continue; 1381 1383 list( $key, $val ) = explode( '=', $pair ); 1382 1384 $key = strtolower( trim( $key ) ); 1383 1385 if ( 'expires' == $key )