forked from php/php-src
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed bug #55504 (Content-Type header is not parsed correctly on HTTP…
… POST request
- Loading branch information
Showing
4 changed files
with
73 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--TEST-- | ||
Bug#55504 (Content-Type header is not parsed correctly on HTTP POST request) | ||
--INI-- | ||
file_uploads=1 | ||
--POST_RAW-- | ||
Content-Type: multipart/form-data; boundary=BVoyv; charset=iso-8859-1 | ||
--BVoyv | ||
Content-Disposition: form-data; name="data" | ||
|
||
abc | ||
--BVoyv-- | ||
--FILE-- | ||
<?php | ||
var_dump($_POST); | ||
?> | ||
--EXPECT-- | ||
array(1) { | ||
["data"]=> | ||
string(3) "abc" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--TEST-- | ||
Bug#55504 (Content-Type header is not parsed correctly on HTTP POST request) | ||
--INI-- | ||
file_uploads=1 | ||
--POST_RAW-- | ||
Content-Type: multipart/form-data; boundary=BVoyv; charset=iso-8859-1 | ||
--BVoyv | ||
Content-Disposition: form-data; name="data" | ||
|
||
abc | ||
--BVoyv | ||
Content-Disposition: form-data; name="data2" | ||
|
||
more data | ||
--BVoyv | ||
Content-Disposition: form-data; name="data3" | ||
|
||
even more data | ||
--BVoyv-- | ||
--FILE-- | ||
<?php | ||
var_dump($_POST); | ||
?> | ||
--EXPECT-- | ||
array(3) { | ||
["data"]=> | ||
string(3) "abc" | ||
["data2"]=> | ||
string(9) "more data" | ||
["data3"]=> | ||
string(14) "even more data" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--TEST-- | ||
Bug#18792 (no form variables after multipart/form-data) | ||
--INI-- | ||
file_uploads=1 | ||
--POST_RAW-- | ||
Content-Type: multipart/form-data; boundary=BVoyv, charset=iso-8859-1 | ||
--BVoyv | ||
Content-Disposition: form-data; name="data" | ||
|
||
abc | ||
--BVoyv-- | ||
--FILE-- | ||
<?php | ||
var_dump($_POST); | ||
?> | ||
--EXPECT-- | ||
array(1) { | ||
["data"]=> | ||
string(3) "abc" | ||
} |