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:
+2
-2
@@ -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; \
|
||||
|
||||
Reference in New Issue
Block a user