rails-hidden_autocomplete 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/config/initializers/rails-hidden_autocomplete.rb +1 -1
- data/lib/rails/hidden_autocomplete/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a19d9fa2931ac94e8f85843f2795b5ad1246c1842bfe92bbc02d17dc3bf228d
|
4
|
+
data.tar.gz: 7819cef70cd267ad5d9e877f4656461e651dc96ccd59a3d21119659cf0e865f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4314d12159bcf06115c22282a0944df767280ed898d074c9eab6039005b56cea834452be1b18f94570cd1769157fc4d552ed59fa6a80db4099bcecbccee46981
|
7
|
+
data.tar.gz: 509f5af66f811025264e61b6225f223c722cf908688eaeaeaf3fc6aa4c1a7a72cbcff2080342a6122f7f46e2532ab26dc5606d3fcb5c22f68b6c0fa90d7b6622
|
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# rails-hidden_autocomplete
|
2
|
-
This is a Rails plugin to add `autocomplete="off"` to all hidden form inputs generated by Rails. This is necessary because Firefox has [a
|
2
|
+
This is a Rails plugin to add `autocomplete="off"` to all hidden form inputs generated by Rails. This is necessary because Firefox has [a longstanding bug](https://bugzilla.mozilla.org/show_bug.cgi?id=520561) where it may populate hidden inputs **without** `autocomplete="off"` with completely random values. Since Rails uses hidden fields extensively for CSRF protection and non-standard HTTP methods, this issue is also tracked in the main Rails tracker here: [add autocomplete="OFF" to firefox-proof automagically added hidden fields like method](https://github.com/rails/rails/issues/42610)
|
3
3
|
|
4
4
|
## Usage
|
5
5
|
Using this plugin from a Rails 6.1 application should automatically override Rails methods which generate hidden form inputs to add an `autocomplete="off"` attribute.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
ActiveSupport.on_load(:action_view) do
|
2
2
|
ActionView::Helpers::DateTimeSelector.prepend Rails::HiddenAutocomplete::ActionView::Helpers::DateTimeSelector
|
3
3
|
ActionView::Helpers::FormTagHelper.prepend Rails::HiddenAutocomplete::ActionView::Helpers::FormTagHelper
|
4
4
|
ActionView::Helpers::Tags::HiddenField.prepend Rails::HiddenAutocomplete::ActionView::Helpers::Tags::HiddenField
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-hidden_autocomplete
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Baumann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-09-
|
11
|
+
date: 2021-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|