isaacs
a811a4a130
Fix #3058 querystring: Fix incorrect handling of empty keys
13 years ago
isaacs
0cdf85e28d
Lint all the JavaScripts.
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
Colton Baker
87286cc737
Fixed a lot of jslint errors.
Fixes #1831
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
b3af074a02
Add querystring test for 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
Oleg Efimov
0ce9cbab29
GJSLint continue
14 years ago
Ryan Dahl
a0159b4b29
Fix global leaks
14 years ago
Ryan Dahl
2a750bffcc
Add tests for querystring.unescapeBuffer
14 years ago
Ryan Dahl
8b1082825c
Rename require('javascript') to require('vm')
14 years ago
Ryan Dahl
d787a444c5
Use require('javascript') instead of process.binding('evals')
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
f18d9d8466
querystring.js: JSLint warnings fixed
15 years ago
Jan Kassens
bb2acd5e75
querystring.stringify is now more solid
* handles NaN and Infinity
* works with arrays from other contexts
14 years ago
Ryan Dahl
9fd5e3c89c
Update tests to work with module contexts
15 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
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
isaacs
5861db8a69
Remove process.mixin dependency from all tests.
15 years ago
Ryan Dahl
b9cd3363ef
Bugfix in querystring
15 years ago
arlolra
04fac19822
Split tests.
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