parliament-utils 0.8.6 → 0.8.7

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: 5882bc351a1078a537fd3c4520c013dec4cac64b
4
- data.tar.gz: fa074c337d4dbcb3a5189b2162386663892c0e3e
3
+ metadata.gz: 287ae1858e83e38907f861a6eee19da93cedb89c
4
+ data.tar.gz: 0f320941b79d1ec124babc8469b7fe893edfca9c
5
5
  SHA512:
6
- metadata.gz: 52bfd09da89a9aaf9f2a8065f49ac64b409bbf8b530525dd6e4081e112496908f46adfa944e3cf303f2d0d1298e43475d4b8f631648471a89fe2ecccb7b88bdb
7
- data.tar.gz: 7f9f2b866fb35691c7dfb2203c75fcba8acda74d08486d5e7452545d41998e812437e6b9fe4c395b080a2b9935bea2233bb4c8516092aaf8d5ae3103d8790e00
6
+ metadata.gz: 385e63da5667aafd8f14991343fe83f15b65fab68d1dd49fdae8dc3ca2d83cb971b4277b2fc2d381188d6db989e6944a6678fccd5e820311c02d1c7a13be1f13
7
+ data.tar.gz: 93e11d863ac58fc57407a6fb5a872474bcad673223920eebd0e9b714322344d812e7d48ae31a8cb317a9ff69ac84ee869aae46db277f9ca067c6e900776f333f
@@ -16,10 +16,8 @@ module Parliament
16
16
  parliament_scrubber = Parliament::Utils::Services::ParliamentMarkdownScrubber.new
17
17
 
18
18
  markdown = Redcarpet::Markdown.new(parliament_renderer, tables: true, autolink: true, lax_spacing: true)
19
-
20
- html = markdown.render(template)
21
- ActionController::Base.helpers.sanitize(html, scrubber: parliament_scrubber).html_safe
22
- html.html_safe
19
+ sanitized_template = ActionController::Base.helpers.sanitize(template, scrubber: parliament_scrubber)
20
+ markdown.render(sanitized_template).html_safe
23
21
  end
24
22
  end
25
23
  end
@@ -36,7 +36,7 @@ module Parliament
36
36
  # Add video ID
37
37
  url << "/#{uri.path.split('/').last}?"
38
38
  # Add original query if present, and not an empty string
39
- url << "#{uri.query}&" if uri.query&.size
39
+ url << "#{CGI.unescapeHTML(uri.query)}&" if uri.query&.size
40
40
  # Add player options
41
41
  url << 'audioOnly=False&autoStart=False&statsEnabled=False'
42
42
  end
@@ -1,5 +1,5 @@
1
1
  module Parliament
2
2
  module Utils
3
- VERSION = '0.8.6'.freeze
3
+ VERSION = '0.8.7'.freeze
4
4
  end
5
5
  end
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.8.6
4
+ version: 0.8.7
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-06-19 00:00:00.000000000 Z
11
+ date: 2018-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parliament-ruby