Skip to content
This repository
Browse code

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

…'t return a 422
  • Loading branch information...
commit 29f07082e625d63819ec51d91eb3ade92266e2b9 1 parent ebc141a
Jeff Squires jsqu99 authored radar committed

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  core/app/assets/javascripts/admin/checkouts/edit.js
2  core/app/assets/javascripts/admin/checkouts/edit.js
@@ -40,7 +40,7 @@ $(document).ready(function(){
40 40 });
41 41 }
42 42
43   - $("#customer_search").autocomplete("/admin/users.json?authenticity_token=" + $('meta[name=csrf-token]').attr("content"), {
  43 + $("#customer_search").autocomplete("/admin/users.json?authenticity_token=" + encodeURIComponent($('meta[name=csrf-token]').attr("content")), {
44 44 minChars: 5,
45 45 delay: 1500,
46 46 parse: prep_user_autocomplete_data,

0 comments on commit 29f0708

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