WordPress.org

Make WordPress Core

Ticket #7361: 001-fix-cgi-status-bug.patch

File 001-fix-cgi-status-bug.patch, 474 bytes (added by yonosoytu, 6 years ago)

Fix for sending "Status:" header with the correct format so CGI do no send 500 response.

  • wp-app.php

     
    10131013                nocache_headers(); 
    10141014                header('WWW-Authenticate: Basic realm="WordPress Atom Protocol"'); 
    10151015                header("HTTP/1.1 401 $msg"); 
    1016                 header('Status: ' . $msg); 
     1016                header('Status: 401 ' . $msg); 
    10171017                header('Content-Type: text/html'); 
    10181018                $content = <<<EOD 
    10191019<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">