summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2007-03-30 00:29:32 +0000
committerIlia Alshanetsky <iliaa@php.net>2007-03-30 00:29:32 +0000
commite5247d0dd0873bb8fe1681a9423fd1177a559a14 (patch)
tree0b358edbf2592cf444f2959034af7c786badcd37
parentfcb34ab808aa3f67311948361cbaddfc9f2ed0ab (diff)
downloadphp-git-e5247d0dd0873bb8fe1681a9423fd1177a559a14.tar.gz
MFB: Fixed MOPB-34-2007:PHP mail() Header Injection Through Subject and To
Parameters
-rw-r--r--ext/standard/mail.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/mail.c b/ext/standard/mail.c
index 72bbf7f38d..5929a05034 100644
--- a/ext/standard/mail.c
+++ b/ext/standard/mail.c
@@ -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; \