Closed framp closed 9 years ago
If you do mean ?lang[]=en&lang[]=fr, how should node-i18n-2 respond ?
I don't think it should respond in any way as it's undefined behaviour. This happened because some random user fiddled with the URL and I logged the crash.
It's enough not to crash the whole application.
Fair enough !
If req.query.lang is an array, i18n-node-2 will try to call toLowerCase on an array making the request fail.