summaryrefslogtreecommitdiff
path: root/main/rfc1867.c
diff options
context:
space:
mode:
authorStefan Esser <sesser@php.net>2004-09-13 16:00:23 +0000
committerStefan Esser <sesser@php.net>2004-09-13 16:00:23 +0000
commit0f860d8f340545b42319d7a3d7ef7208c565225c (patch)
treed81b19130a5c93904793c25529d8b0f23f3f6528 /main/rfc1867.c
parent12752a4044ab8b68f3d019685a1cef0605a202f5 (diff)
downloadphp-git-0f860d8f340545b42319d7a3d7ef7208c565225c.tar.gz
only allow valid arrays at this point
Diffstat (limited to 'main/rfc1867.c')
-rw-r--r--main/rfc1867.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/rfc1867.c b/main/rfc1867.c
index 28471d5179..7350508cff 100644
--- a/main/rfc1867.c
+++ b/main/rfc1867.c
@@ -950,6 +950,10 @@ SAPI_API SAPI_POST_HANDLER_FUNC(rfc1867_post_handler)
c++;
} else if (*tmp == ']') {
c--;
+ if (tmp[1] && tmp[1] != '[') {
+ skip_upload = 1;
+ break;
+ }
}
if (c < 0) {
skip_upload = 1;