WordPress.org

Make WordPress Core

Ticket #7270: tilde-encoding.patch

File tilde-encoding.patch, 462 bytes (added by hopson, 7 years ago)
  • wp-includes/

    old new  
    609609                        (empty($_COOKIE[AUTH_COOKIE])) ) { 
    610610                nocache_headers(); 
    611611 
    612                 wp_redirect(get_option('siteurl') . '/wp-login.php?redirect_to=' . urlencode($_SERVER['REQUEST_URI'])); 
     612                wp_redirect(get_option('siteurl') . '/wp-login.php?redirect_to=' . urlencode(urldecode($_SERVER['REQUEST_URI']))); 
    613613                exit(); 
    614614        } 
    615615}