File php-5.1.2-CVE-2007-1718.patch of Package php

--- ext/standard/mail.c	2007/03/27 09:20:27	1.87.2.1.2.4
+++ ext/standard/mail.c	2007/03/30 00:28:58	1.87.2.1.2.5
@@ -48,8 +48,8 @@
 
 #define SKIP_LONG_HEADER_SEP(str, pos)										\
 	if (str[pos] == '\r' && str[pos + 1] == '\n' && (str[pos + 2] == ' ' || str[pos + 2] == '\t')) {	\
-		pos += 3;											\
-		while (str[pos] == ' ' || str[pos] == '\t') {							\
+		pos += 2;											\
+		while (str[pos + 1] == ' ' || str[pos + 1] == '\t') {							\
 			pos++;											\
 		}												\
 		continue;											\
openSUSE Build Service is sponsored by