Skip to content

Commit

Permalink
Replace serialized "+" with space (#521)
Browse files Browse the repository at this point in the history
* Replace serialized "+" with space

Fixes regression introduced by #262
https://www.drupal.org/node/2860158#comment-12011599
  • Loading branch information
markhalliwell authored and kevindb committed Mar 29, 2017
1 parent c464bc4 commit 12b358a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/jquery.form.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,8 @@
var i, part;

for (i = 0; i < len; i++) {
// #252; undo param space replacement
serialized[i] = serialized[i].replace(/\+/g, ' ');
part = serialized[i].split('=');
// #278; use array instead of object storage, favoring array serializations
result.push([decodeURIComponent(part[0]), decodeURIComponent(part[1])]);
Expand Down

0 comments on commit 12b358a

Please sign in to comment.