Skip to content

Commit 8f71bae

Browse files
author
Hong
committed
fix issue where certain extraData form fields get sent with spaces encoded as +s
1 parent 47f7cf0 commit 8f71bae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery.form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ $.fn.ajaxSubmit = function(options) {
213213
// This is a utility function to fix deep serialization issues when doing file uploads
214214
// eg params show up as "[object Object]" rather than what it should be
215215
function formDeepSerialize(extraData){
216-
var serialized = $.param(extraData).split('&');
216+
var serialized = $.param(extraData).replace(/\+/g, '%20').split('&');
217217
var result = {};
218218
var n;
219219
for(var i=0, l=serialized.length; i < l; i++){

0 commit comments

Comments
 (0)