diff --git a/i18n.js b/i18n.js index 1ce2d47c..8ce1b886 100644 --- a/i18n.js +++ b/i18n.js @@ -161,7 +161,7 @@ i18n.prototype = { setLocaleFromQuery: function(req) { req = req || this.request; - if (!req || !req.query || !req.query.lang) { + if (!req || !req.query || !req.query.lang || typeof req.query.lang !== 'string') { return; }