Skip to content

Commit

Permalink
Improvement for bug73297
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Pauli committed Nov 17, 2016
1 parent 8b54b36 commit 607049f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/standard/http_fopen_wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ php_stream *php_stream_url_wrap_http_ex(php_stream_wrapper *wrapper,
while (
!php_stream_eof(stream)
&& php_stream_get_line(stream, tmp_line, sizeof(tmp_line) - 1, &tmp_line_len) != NULL
&& ( tmp_line_len < 6 || strncasecmp(tmp_line, "HTTP/1", 6) )
&& ( tmp_line_len < sizeof("HTTP/1") - 1 || strncasecmp(tmp_line, "HTTP/1", sizeof("HTTP/1") - 1) )
);

if (tmp_line_len > 9) {
Expand Down

0 comments on commit 607049f

Please sign in to comment.