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;
|