parliament-utils 0.9.1 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9a7896fa357fb4169dd17eb9a3583e21013e72e
|
4
|
+
data.tar.gz: a0609152b4b8509c4017df31665e55c1a169616f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29f95d2ba7b0eeabaf4826e6bb68f76fa6e37d6341e5187819c7450a33f379ec58e6d440d3912bcd6dddbfbe4bc54bbcb3c5fa036d2502da99436126d1dd7c2b
|
7
|
+
data.tar.gz: 82c66428fbd06ef442e91afc3875a4d852d9c72ae82c8210b530219cef6808c2f305ebc2fc69297443fce7d05a40e56bf4a427e9291c90320b137eef4e7352d8
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Allow HTML tags that aren't allowed by default in the SanitizeHelper
|
4
|
+
|
5
|
+
# Don't change this
|
6
|
+
default_sanitize_tags = ActionView::Base.sanitized_allowed_tags
|
7
|
+
|
8
|
+
# Add your desired HTML tags in here
|
9
|
+
desired_sanitize_tags = %w[table tbody td tfoot th thead tr]
|
10
|
+
|
11
|
+
# Merge default_sanitize_tags with desired_sanitize_tags
|
12
|
+
Rails.application.config.action_view.sanitized_allowed_tags = default_sanitize_tags.merge(desired_sanitize_tags).to_a
|
@@ -11,6 +11,7 @@ require 'parliament/utils/config/initializers/cookies_serializer'
|
|
11
11
|
require 'parliament/utils/config/initializers/filter_parameter_logging'
|
12
12
|
require 'parliament/utils/config/initializers/inflections'
|
13
13
|
require 'parliament/utils/config/initializers/mime_types'
|
14
|
+
require 'parliament/utils/config/initializers/sanitize_allowed_html_tags'
|
14
15
|
require 'parliament/utils/config/initializers/session_store'
|
15
16
|
require 'parliament/utils/config/initializers/timeout' if defined?(Rack::Timeout)
|
16
17
|
require 'parliament/utils/config/initializers/wrap_parameters'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parliament-utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rebecca Appleyard
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parliament-ruby
|
@@ -326,6 +326,7 @@ files:
|
|
326
326
|
- lib/parliament/utils/config/initializers/filter_parameter_logging.rb
|
327
327
|
- lib/parliament/utils/config/initializers/inflections.rb
|
328
328
|
- lib/parliament/utils/config/initializers/mime_types.rb
|
329
|
+
- lib/parliament/utils/config/initializers/sanitize_allowed_html_tags.rb
|
329
330
|
- lib/parliament/utils/config/initializers/session_store.rb
|
330
331
|
- lib/parliament/utils/config/initializers/timeout.rb
|
331
332
|
- lib/parliament/utils/config/initializers/wrap_parameters.rb
|