mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-14 10:37:45 +01:00
fix: use min
This commit is contained in:
@@ -141,7 +141,7 @@ function setupExpressApp(app) {
|
|||||||
// https://github.com/NodeBB/NodeBB/issues/13918
|
// https://github.com/NodeBB/NodeBB/issues/13918
|
||||||
const qs = require('qs');
|
const qs = require('qs');
|
||||||
app.set('query parser', str => qs.parse(str, {
|
app.set('query parser', str => qs.parse(str, {
|
||||||
arrayLimit: Math.max(100, nconf.get('queryParser:arrayLimit') || 50),
|
arrayLimit: Math.min(100, nconf.get('queryParser:arrayLimit') || 50),
|
||||||
}));
|
}));
|
||||||
app.use(flash());
|
app.use(flash());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user