1
0
mirror of https://github.com/php/php-src.git synced 2026-04-30 03:33:17 +02:00

Fixed MOPB-34-2007:PHP mail() Header Injection Through Subject and To

Parameters
This commit is contained in:
Ilia Alshanetsky
2007-03-30 00:28:58 +00:00
parent 52b07d1895
commit 86ca439a5d
+2 -2
View File
@@ -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; \