Ticket #48085: 48085.patch
File 48085.patch, 1.3 KB (added by , 5 years ago) |
---|
-
wp-admin/admin.php
47 47 do_action( 'after_db_upgrade' ); 48 48 } elseif ( get_option( 'db_version' ) != $wp_db_version && empty( $_POST ) ) { 49 49 if ( ! is_multisite() ) { 50 wp_ redirect( admin_url( 'upgrade.php?_wp_http_referer=' . urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ) ) );50 wp_safe_redirect( admin_url( 'upgrade.php?_wp_http_referer=' . urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ) ) ); 51 51 exit; 52 52 } 53 53 … … 188 188 } else { 189 189 $query_string = 'page=' . $plugin_page; 190 190 } 191 wp_ redirect( admin_url( 'tools.php?' . $query_string ) );191 wp_safe_redirect( admin_url( 'tools.php?' . $query_string ) ); 192 192 exit; 193 193 } 194 194 } … … 299 299 } 300 300 301 301 if ( validate_file( $importer ) ) { 302 wp_ redirect( admin_url( 'import.php?invalid=' . $importer ) );302 wp_safe_redirect( admin_url( 'import.php?invalid=' . $importer ) ); 303 303 exit; 304 304 } 305 305 306 306 if ( ! isset( $wp_importers[ $importer ] ) || ! is_callable( $wp_importers[ $importer ][2] ) ) { 307 wp_ redirect( admin_url( 'import.php?invalid=' . $importer ) );307 wp_safe_redirect( admin_url( 'import.php?invalid=' . $importer ) ); 308 308 exit; 309 309 } 310 310