What steps will reproduce the problem?
1. Setup an MVC app to check for antiforgery tokens
2. Setup the plugin to some element on a view
3. Use it as intended
What is the expected output? What do you see instead?
Even when passing the antiforgery token as "params" to the plugin, the token
gets messed up in the POST. (It replaces the '+' signs with spaces and gets rid
of the "=" sign.
What version of the product are you using? On what operating system?
2.3.0 on windows 7
Please provide any additional information below.
I had to make this change in the handleSubmitToServer method to get it working
with the antiforgery token:
var data=
{
update_value: enteredText,
element_id: this.dom.attr("id"),
original_html : encodeURIComponent(this.originalValue),
original_value : encodeURIComponent(this.originalValue)
};
for (var param in this.settings.params.split('&'))
{
var field = this.settings.params.split('&')[param].split('=')[0];
data[field] = this.settings.params.split('&')[param].substring(field.length + 1);
}
Original issue reported on code.google.com by firoz.jo...@gmail.com on 20 Feb 2013 at 9:30
Original issue reported on code.google.com by
firoz.jo...@gmail.com
on 20 Feb 2013 at 9:30