Skip to content

Commit

Permalink
fixes #762, the name of the form field needs to be URIencoded before …
Browse files Browse the repository at this point in the history
…being sent to the server.
  • Loading branch information
fabiomcosta committed May 8, 2010
1 parent 416b988 commit e4e637a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Element/Element.js
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ Element.implement({
}) : ((type == 'radio' || type == 'checkbox') && !el.checked) ? null : el.get('value');

Array.from(value).each(function(val){
if (typeof val != 'undefined') queryString.push(el.name + '=' + encodeURIComponent(val));
if (typeof val != 'undefined') queryString.push(encodeURIComponent(el.name) + '=' + encodeURIComponent(val));
});
});
return queryString.join('&');
Expand Down

0 comments on commit e4e637a

Please sign in to comment.