WordPress.org

Make WordPress Core

Changeset 12340


Ignore:
Timestamp:
12/08/09 16:38:59 (6 years ago)
Author:
westi
Message:

Urlencode the redirect url for the logout links as well as login in links. Fixes #10991 props Utkarsh.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/general-template.php

    r12201 r12340  
    167167    $args = array( 'action' => 'logout' ); 
    168168    if ( !empty($redirect) ) { 
    169         $args['redirect_to'] = $redirect; 
     169        $args['redirect_to'] = urlencode( $redirect ); 
    170170    } 
    171171 
Note: See TracChangeset for help on using the changeset viewer.