Make WordPress Core


Ignore:
Timestamp:
04/09/2006 10:57:23 PM (18 years ago)
Author:
ryan
Message:

Split on '; ' not ';'.

File:
1 edited

Legend:

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

    r3660 r3702  
    240240if ( !function_exists('check_ajax_referer') ) :
    241241function check_ajax_referer() {
    242     $cookie = explode(';', urldecode(empty($_POST['cookie']) ? $_GET['cookie'] : $_POST['cookie'])); // AJAX scripts must pass cookie=document.cookie
     242    $cookie = explode('; ', urldecode(empty($_POST['cookie']) ? $_GET['cookie'] : $_POST['cookie'])); // AJAX scripts must pass cookie=document.cookie
    243243    foreach ( $cookie as $tasty ) {
    244244        if ( false !== strpos($tasty, USER_COOKIE) )
Note: See TracChangeset for help on using the changeset viewer.