1
0
Fork 0
mirror of https://github.com/KingDuckZ/kamokan.git synced 2025-07-02 14:04:16 +00:00

Fail if CONTENT_TYPE is not application/x-www-form-urlencoded.

As part of the partial improvement to the POST reading
code I also added a max_post_size setting which defaults
to 1 MiB. POST inputs longer than that size get truncated.
This is separate to max_pastie_size, which is just the
size of one of the values in the POST data.
This commit is contained in:
King_DuckZ 2017-06-02 09:23:35 +01:00
parent 24baf67a65
commit 2f00014758
9 changed files with 87 additions and 22 deletions

View file

@ -53,6 +53,7 @@ TEST_CASE ("Retrieve and sanitize invalid an invalid utf-8 text from POST data",
content_length.c_str(),
"PATH_INFO=/",
"REQUEST_METHOD=GET",
"CONTENT_TYPE=application/x-www-form-urlencoded",
nullptr
};