isaacs
f105f2f2fd
trivial: Doc typo and lint fix
13 years ago
Felix Böhm
3a5798b097
querystring: improved speed and code cleanup
13 years ago
isaacs
a811a4a130
Fix #3058 querystring: Fix incorrect handling of empty keys
13 years ago
isaacs
d3b8372615
lint, missed in QS speed merge
13 years ago
Brian White
5e3ca98155
Make QueryString.parse() even faster
13 years ago
isaacs
0cdf85e28d
Lint all the JavaScripts.
13 years ago
Philip Tellis
5166758927
Make QueryString.parse run faster
Use decodeURIComponent when appropriate, and only fall back to
querystring.decode if it throws, or if the character is a '+'.
Fix #2248
13 years ago
Fedor Indutny
23de33968f
querystring: fix maxKeys = 0 is ignored
13 years ago
Fedor Indutny
8a98c2f1d8
http, querystring: added limits to prevent DoS
13 years ago
isaacs
e06ce7562c
Fix #1707 hasOwnProperty usage
If hasOwnProperty is overridden, then calling `obj.hasOwnProperty(prop)`
can fail. Any time a dictionary of user-generated items is built, we
cannot rely on hasOwnProperty being safe, so must call it from the
Object.prototype explicitly.
13 years ago
isaacs
98990b9779
Fix #1707 hasOwnProperty usage
13 years ago
isaacs
ac4791393e
Fix #1497 querystring: Replace 'in' test with 'hasOwnProperty'
13 years ago
isaacs
3210809d0a
Fix #1497 querystring: Replace 'in' test with 'hasOwnProperty'
13 years ago
Ryan Dahl
55048cdf79
Update copyright headers
14 years ago
Jeremy Martin
6f726cf8c7
url.parse(url, true) defaults query field to {}
14 years ago
Ryan Dahl
e232f6e735
more lint
14 years ago
Ryan Dahl
6ff12c425e
Add querystring.unescapeBuffer
14 years ago
Ryan Dahl
57d8172906
query-string unescape moved to js land
14 years ago
Peter Griess
422d3c93bc
Get rid of PHP/Rails style parameter munging.
- Handle only the most basic of query string parsing and construction.
Leave the rest (e.g. Rails/PHP behaviors) to modules higher up the
stack, like Express.
14 years ago
cloudhead
fe3e419687
querystring.parse: handle undefined value properly
14 years ago
Micheil Smith
299671b731
querystring: Removing typecasting of numeric strings to numbers
The tests did not accurately test for a strict equality, meaning that the
number == to the string.
14 years ago
Jan Kassens
bb2acd5e75
querystring.stringify is now more solid
* handles NaN and Infinity
* works with arrays from other contexts
14 years ago
Dmitry Baranovskiy
f8ca6b383c
Rewrote QueryString.parse to make it smaller and more effective.
Also added ability to parse foo.bar=4 equal to foo[bar]=4
Added tests for this as well
15 years ago
Dmitry Baranovskiy
8ec12339f5
Refactored isA, isBool, etc functions to use some of ES5 goodness.
15 years ago
isaacs
4ce100fa62
A replacement for decodeURIComponent that doesn't throw.
And add a few more tests.
15 years ago
Thomas Lee
a63ce5cd72
Allow callers to disable PHP/Rails style parameter mungeing in querystring.stringify
15 years ago
Tim Caswell
62d9852c3d
Replace slow and broken for..in loops with faster for loops over the keys.
15 years ago
isaacs
57fbb627ca
trailing whitespace fixes
15 years ago
Ryan Dahl
b9cd3363ef
Bugfix in querystring
15 years ago
isaacs
7ff04c1f86
Add URL and QueryString modules, and tests for each.
Also, make a slight change from original on url-module to put the
spacePattern into the function. On closer inspection, it turns out that the
nonlocal-var cost is higher than the compiling-a-regexp cost.
Also, documentation.
15 years ago