Make WordPress Core

Changeset 12340


Ignore:
Timestamp:
12/08/2009 04:38:59 PM (13 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.