Make WordPress Core


Ignore:
Timestamp:
02/07/2008 06:23:51 PM (16 years ago)
Author:
ryan
Message:

wp_safe_redirect() for 2.0. Props markjaquith and snakefoot. fixes #4606 for 2.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/wp-login.php

    r5023 r6751  
    3030        $redirect_to = $_REQUEST['redirect_to'];
    3131           
    32     wp_redirect($redirect_to);
     32    wp_safe_redirect($redirect_to);
    3333    exit();
    3434
     
    199199                wp_setcookie($user_login, $user_pass, false, '', '', $rememberme);
    200200            do_action('wp_login', $user_login);
    201             wp_redirect($redirect_to);
     201            wp_safe_redirect($redirect_to);
    202202            exit;
    203203        } else {
Note: See TracChangeset for help on using the changeset viewer.