Commit 878bcd43 authored by Myles Borins's avatar Myles Borins
Browse files

querystring: check that maxKeys is finite

There was a very subtle change in behavior introduced with 27def4fa

In the past if querystring.parse was given Infinity for maxKeys,
everything worked as expected.

Check to see is maxKeys is Infinity before forwarding the value to
String.prototype.split which causes this regression

PR-URL: https://github.com/nodejs/node/pull/5066


Reviewed-By: default avatarEvan Lucas <evanlucas@me.com>
Reviewed By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: default avatarRod Vagg <rod@vagg.org>
Reviewed-By: default avatarJeremiah Senkpiel <fishrock123@rocketmail.com>
parent 1124de2d
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment