aboutsummaryrefslogtreecommitdiffstats
path: root/src/ajax.js
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2010-01-13 09:29:01 -0500
committerjeresig <jeresig@gmail.com>2010-01-13 09:29:01 -0500
commit05aaa3395723bbb48906ee8a99464a2c4e1e4193 (patch)
treed24839f01905a63128a21c0c0b42a8d3a8e55284 /src/ajax.js
parent23492fdf9fa6f2c3b8ee85d062fed74297f3c438 (diff)
downloadjquery-05aaa3395723bbb48906ee8a99464a2c4e1e4193.tar.gz
jquery-05aaa3395723bbb48906ee8a99464a2c4e1e4193.zip
Make sure that null params aren't traversed. Fixes #5794.
Diffstat (limited to 'src/ajax.js')
-rw-r--r--src/ajax.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ajax.js b/src/ajax.js
index 3ef2d4f1e..3c199af95 100644
--- a/src/ajax.js
+++ b/src/ajax.js
@@ -665,7 +665,7 @@ jQuery.extend({
}
});
- } else if ( !traditional && typeof obj === "object" ) {
+ } else if ( !traditional && obj != null && typeof obj === "object" ) {
// Serialize object item.
jQuery.each( obj, function( k, v ) {
buildParams( prefix + "[" + k + "]", v );