Skip to content

Commit 7a4c6f4

Browse files
committed
Fixed input name selector in csrf form update
1 parent bb13c9d commit 7a4c6f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rails.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@
378378
// making sure that all forms have actual up-to-date token(cached forms contain old one)
379379
csrf_token = $('meta[name=csrf-token]').attr('content');
380380
csrf_param = $('meta[name=csrf-param]').attr('content');
381-
$('form input[name='+csrf_param+']').val(csrf_token);
381+
$('form input[name="' + csrf_param + '"]').val(csrf_token);
382382
});
383383

384384
})( jQuery );

0 commit comments

Comments
 (0)