mirror of
https://github.com/KingDuckZ/kamokan.git
synced 2025-08-03 12:50:02 +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:
parent
24baf67a65
commit
2f00014758
9 changed files with 87 additions and 22 deletions
|
@ -84,6 +84,7 @@ namespace {
|
|||
parSettings.add_default("resubmit_wait", "10");
|
||||
parSettings.add_default("log_file", "-");
|
||||
parSettings.add_default("highlight_css", "sh_darkness.css");
|
||||
parSettings.add_default("max_post_size", "1048576");
|
||||
}
|
||||
|
||||
void print_buildtime_info() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue