Make WordPress Core

Changeset 4053


Ignore:
Timestamp:
07/27/2006 07:11:46 AM (20 years ago)
Author:
ryan
Message:

Sack encoding fix from hgfischer. fixes #2977

File:
1 edited

Legend:

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

    r3940 r4053  
    246246        foreach ( $cookie as $tasty ) {
    247247                if ( false !== strpos($tasty, USER_COOKIE) )
    248                         $user = substr(strstr($tasty, '='), 1);
     248                        $user = urldecode(substr(strstr($tasty, '='), 1)); // Nasty double encoding
    249249                if ( false !== strpos($tasty, PASS_COOKIE) )
    250                         $pass = substr(strstr($tasty, '='), 1);
     250                        $pass = urldecode(substr(strstr($tasty, '='), 1));
    251251        }
    252252        if ( wp_login( $user, $pass, true ) )
Note: See TracChangeset for help on using the changeset viewer.