Make WordPress Core

Changeset 21227


Ignore:
Timestamp:
07/07/2012 12:06:09 PM (13 years ago)
Author:
dd32
Message:

WP_HTTP: Allow for cookies with "empty" values be sent, this affects sending cookies such as test=0, which would previously fail. Props mailnew2ster for initial patch. See #14184

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-http.php

    r21226 r21227  
    15911591     */
    15921592    function getHeaderValue() {
    1593         if ( empty( $this->name ) || empty( $this->value ) )
     1593        if ( ! isset( $this->name ) || ! isset( $this->value ) )
    15941594            return '';
    15951595
Note: See TracChangeset for help on using the changeset viewer.