Skip to content

Commit 0375867

Browse files
committed
jquery-form#252; fix space/plus issue with deepSerialize
1 parent 1e9436b commit 0375867

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

jquery.form.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* jQuery Form Plugin
3-
* version: 3.20 (20-NOV-2012)
3+
* version: 3.21 (1-DEC-2012)
44
* @requires jQuery v1.5 or later
55
*
66
* Examples and documentation at: http://malsup.com/jquery/form/
@@ -225,6 +225,8 @@ $.fn.ajaxSubmit = function(options) {
225225
var result = {};
226226
var i, part;
227227
for (i=0; i < len; i++) {
228+
// #252; undo param space replacement
229+
serialized[i] = serialized[i].replace(/\+/g,' ');
228230
part = serialized[i].split('=');
229231
result[decodeURIComponent(part[0])] = decodeURIComponent(part[1]);
230232
}

0 commit comments

Comments
 (0)