WordPress.org

Make WordPress Core

Changeset 3739


Ignore:
Timestamp:
04/21/2006 10:18:58 PM (12 years ago)
Author:
ryan
Message:

Split on '; ' not ';'.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/wp-includes/pluggable-functions.php

    r3737 r3739  
    236236if ( !function_exists('check_ajax_referer') ) :
    237237function check_ajax_referer() {
    238     $cookie = explode(';', urldecode(empty($_POST['cookie']) ? $_GET['cookie'] : $_POST['cookie'])); // AJAX scripts must pass cookie=document.cookie
     238    $cookie = explode('; ', urldecode(empty($_POST['cookie']) ? $_GET['cookie'] : $_POST['cookie'])); // AJAX scripts must pass cookie=document.cookie
    239239    foreach ( $cookie as $tasty ) {
    240240        if ( false !== strpos($tasty, USER_COOKIE) )
Note: See TracChangeset for help on using the changeset viewer.