The new sparse array compaction in qs (that was upgraded when upgraded connect) does for (var i in obj) ret.push(obj[i]); which causes any additions to Array.prototype to be included in the array in array query values.
Array.prototype.random = function () {};
console.dir(require('qs').parse('arr=1&arr=2'));
The new sparse array compaction in
qs
(that was upgraded when upgradedconnect
) doesfor (var i in obj) ret.push(obj[i]);
which causes any additions toArray.prototype
to be included in the array in array query values.Results in the unexpected