Make WordPress Core

Ticket #44317: fix(wp_redirect)__Adding_validation_of_status_code___wp_redirect()_will_now_exit_if_status.patch

File fix(wp_redirect)__Adding_validation_of_status_code___wp_redirect()_will_now_exit_if_status.patch, 585 bytes (added by spenserhale, 5 years ago)
  • src/wp-includes/pluggable.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    12501250                        return false;
    12511251                }
    12521252
     1253                if ( 300 >= $status && 400 < $status ) {
     1254                        wp_die( __( 'HTTP redirect status code must be a redirection code, 3xx.' ) );
     1255                }
     1256
    12531257                $location = wp_sanitize_redirect( $location );
    12541258
    12551259                if ( ! $is_IIS && PHP_SAPI != 'cgi-fcgi' ) {