Skip to content
Browse files

[Fixes #843] - wrap auth token in encodeURIComponent so that it doesn…

…'t return a 422
  • Loading branch information...
1 parent ebc141a commit 29f07082e625d63819ec51d91eb3ade92266e2b9 @jsqu99 jsqu99 committed with radar Dec 5, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/app/assets/javascripts/admin/checkouts/edit.js
View
2 core/app/assets/javascripts/admin/checkouts/edit.js
@@ -40,7 +40,7 @@ $(document).ready(function(){
});
}
- $("#customer_search").autocomplete("/admin/users.json?authenticity_token=" + $('meta[name=csrf-token]').attr("content"), {
+ $("#customer_search").autocomplete("/admin/users.json?authenticity_token=" + encodeURIComponent($('meta[name=csrf-token]').attr("content")), {
minChars: 5,
delay: 1500,
parse: prep_user_autocomplete_data,

0 comments on commit 29f0708

Please sign in to comment.
Something went wrong with that request. Please try again.