php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #60227
Patch SAPI.diff revision 2011-11-06 07:05 UTC by rui_hirokawa at yahoo dot co dot jp

Patch SAPI.diff for HTTP related Bug #60227

Patch version 2011-11-06 07:05 UTC

Return to Bug #60227 | Download this patch
Patch Revisions:

Developer: rui_hirokawa@yahoo.co.jp

Index: main/SAPI.c
===================================================================
--- main/SAPI.c	(リビジョン 318792)
+++ main/SAPI.c	(作業コピー)
@@ -712,7 +712,7 @@
 	} else {
 		/* new line safety check */
 		char *s = header_line, *e = header_line + header_line_len, *p;
-		while (s < e && (p = memchr(s, '\n', (e - s)))) {
+		while (s < e && ((p = memchr(s, '\n', (e - s))) || (p = memchr(s, '\r', (e - s))))) {
 			if (*(p + 1) == ' ' || *(p + 1) == '\t') {
 				s = p + 1;
 				continue;
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 07:01:29 2024 UTC