Skip to content

Commit 12b358a

Browse files
markhalliwellkevindb
authored andcommitted
Replace serialized "+" with space (#521)
* Replace serialized "+" with space Fixes regression introduced by #262 https://www.drupal.org/node/2860158#comment-12011599
1 parent c464bc4 commit 12b358a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/jquery.form.js

+2
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,8 @@
346346
var i, part;
347347

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

0 commit comments

Comments
 (0)