diff options
author | jeresig <jeresig@gmail.com> | 2010-01-13 09:29:01 -0500 |
---|---|---|
committer | jeresig <jeresig@gmail.com> | 2010-01-13 09:29:01 -0500 |
commit | 05aaa3395723bbb48906ee8a99464a2c4e1e4193 (patch) | |
tree | d24839f01905a63128a21c0c0b42a8d3a8e55284 /src/ajax.js | |
parent | 23492fdf9fa6f2c3b8ee85d062fed74297f3c438 (diff) | |
download | jquery-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.js | 2 |
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 ); |