From b580155a35270d2be3ddb8eb7a8ae311d2b4b40c Mon Sep 17 00:00:00 2001 From: Lloyd Hilaiel <lloyd@hilaiel.com> Date: Tue, 31 Jan 2012 19:07:36 -0700 Subject: [PATCH] limit post bodies in verifier. closes #878 --- bin/verifier | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/verifier b/bin/verifier index 5e7e45d38..50210785b 100755 --- a/bin/verifier +++ b/bin/verifier @@ -35,6 +35,10 @@ app.use(express.logger({ } })); +// limit all content bodies to 10kb, at which point we'll forcefully +// close down the connection. +app.use(express.limit("10kb")); + var statsd_config = config.get('statsd'); if (statsd_config && statsd_config.enabled) { logger_statsd = require("connect-logger-statsd"); -- GitLab