Ticket #16907: 16907.patch

File 16907.patch, 1.5 KB (added by hakre, 2 years ago)

theme-editor.php and ms-settings.php

  • wp-admin/theme-editor.php

    ### Eclipse Workspace Patch 1.0
    #P wordpress-trunk
     
    9393                $location = "theme-editor.php?file=$file&theme=$theme&scrollto=$scrollto"; 
    9494        } 
    9595 
    96         $location = wp_kses_no_null($location); 
    97         $strip = array('%0d', '%0a', '%0D', '%0A'); 
    98         $location = _deep_replace($strip, $location); 
    99         header("Location: $location"); 
     96        wp_redirect( $location ); 
    10097        exit(); 
    10198 
    10299break; 
  • wp-includes/ms-settings.php

     
    9191                } else { 
    9292                        $destination = 'http://' . $current_site->domain . $current_site->path . 'wp-signup.php?new=' . str_replace( '.' . $current_site->domain, '', $domain ); 
    9393                } 
    94                 header( 'Location: ' . $destination ); 
    95                 die(); 
     94                wp_redirect( $destination ); 
     95                exit; 
    9696        } 
    9797 
    9898        if ( ! defined( 'WP_INSTALLING' ) ) { 
    9999                if ( $current_site && ! $current_blog ) { 
    100100                        if ( $current_site->domain != $_SERVER[ 'HTTP_HOST' ] ) { 
    101                                 header( 'Location: http://' . $current_site->domain . $current_site->path ); 
     101                                wp_redirect( 'http://' . $current_site->domain . $current_site->path ); 
    102102                                exit; 
    103103                        } 
    104104                        $current_blog = get_blog_details( array( 'domain' => $current_site->domain, 'path' => $current_site->path ), false );