Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed input name selector in csrf form update

  • Loading branch information...
commit 7a4c6f4c96136b8ac037972763b08c4a797efb54 1 parent bb13c9d
@JangoSteve JangoSteve authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/rails.js
View
2  src/rails.js
@@ -378,7 +378,7 @@
// making sure that all forms have actual up-to-date token(cached forms contain old one)
csrf_token = $('meta[name=csrf-token]').attr('content');
csrf_param = $('meta[name=csrf-param]').attr('content');
- $('form input[name='+csrf_param+']').val(csrf_token);
+ $('form input[name="' + csrf_param + '"]').val(csrf_token);
});
})( jQuery );
Please sign in to comment.
Something went wrong with that request. Please try again.