Ticket #16885: 16885.diff

File 16885.diff, 601 bytes (added by hakre, 2 years ago)

No notice on missing SP after the three digit HTTP Status-Code

Line 
1### Eclipse Workspace Patch 1.0
2#P wordpress-trunk
3Index: wp-includes/class-http.php
4===================================================================
5--- wp-includes/class-http.php  (revision 17521)
6+++ wp-includes/class-http.php  (working copy)
7@@ -439,7 +439,9 @@
8                                continue;
9 
10                        if ( false === strpos($tempheader, ':') ) {
11-                               list( , $response['code'], $response['message']) = explode(' ', $tempheader, 3);
12+                               $stack = explode(' ', $tempheader, 3);
13+                               $stack[] = ''; // default empty message
14+                               list( , $response['code'], $response['message']) = $stack;
15                                continue;
16                        }
17