Skip to content

Commit 49030f2

Browse files
author
Julien Pauli
committed
Improvement for bug73297
1 parent eba5e27 commit 49030f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/http_fopen_wrapper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ php_stream *php_stream_url_wrap_http_ex(php_stream_wrapper *wrapper,
708708
while (
709709
!php_stream_eof(stream)
710710
&& php_stream_get_line(stream, tmp_line, sizeof(tmp_line) - 1, &tmp_line_len) != NULL
711-
&& ( tmp_line_len < 6 || strncasecmp(tmp_line, "HTTP/1", 6) )
711+
&& ( tmp_line_len < sizeof("HTTP/1") - 1 || strncasecmp(tmp_line, "HTTP/1", sizeof("HTTP/1") - 1) )
712712
);
713713

714714
if (tmp_line_len > 9) {

0 commit comments

Comments
 (0)