WordPress.org

Make WordPress Core

Changeset 13887


Ignore:
Timestamp:
03/30/10 10:22:30 (5 years ago)
Author:
dd32
Message:

Whitespace only Cookie pairs are not permitted; Skip them. Props josephscott. Fixes #12761

File:
1 edited

Legend:

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

    r13849 r13887  
    17371737            // Set everything else as a property 
    17381738            foreach ( $pairs as $pair ) { 
     1739                $pair = rtrim($pair); 
    17391740                if ( empty($pair) ) //Handles the cookie ending in ; which results in a empty final pair 
    17401741                    continue; 
Note: See TracChangeset for help on using the changeset viewer.