parliament-utils 0.8.0 → 0.8.1

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: b173f819cf1d473df8cb3e8bdbe2f7baa1c07d77
4
- data.tar.gz: 31fec4b9ad307c3da159a8a32067f5448ceb259a
3
+ metadata.gz: a051cb11537b231b277ebd5e726d610960d30691
4
+ data.tar.gz: f681e82c529a044415df651ee97ff2af35bea0a4
5
5
  SHA512:
6
- metadata.gz: 7fa9ac42aa1f5e817e4136637030c231b902d723a1bb168fd42993391c50283d3ca63d8fdc8dd252a56d87e33a6edf106c655e43a60d6c45fc87f8a7e129d1b2
7
- data.tar.gz: e7ca04377b71a343146b21324f94c7ca50b02eb54727fb99d95cbbc2d814d2d263ee2e3ec880f6ef00d28942a62d445365155ca1fe5469a637ccb6e559c158f6
6
+ metadata.gz: 02edb0072127c6fcd4a3666d243369099af4b8282e1e2647bd09d5d6fbc44eb59642b9266660b03048c058fe93ef4404feb13b8990ee5bfa7a54c2913bf6c8dd
7
+ data.tar.gz: 4168e3d2a5bbf1a2ad8e07a70a8e3d0d03772ddda54fb8c240052c290edd793e955ef2a8e300c505af25726e40dacb5005157086d0a0d18b32b9f7e08ae25287
@@ -38,13 +38,14 @@ module Parliament
38
38
  # Add original query if present, and not an empty string
39
39
  url << "#{uri.query}&" if uri.query&.size
40
40
  # Add player options
41
- url << 'audioOnly=False&amp;autoStart=False&amp;statsEnabled=False'
41
+ url << 'audioOnly=False&autoStart=False&statsEnabled=False'
42
42
  end
43
43
 
44
+ # Escape special characters in HTML
45
+ video_url = CGI.escapeHTML(video_url)
46
+
44
47
  # Return the video player
45
- %(<div class="video-wrap">
46
- <iframe src="#{video_url}" name="UKPPlayer" title="UK Parliament Player" seamless="seamless" frameborder="0" allowfullscreen style="width: 100%; height: 100%"></iframe>
47
- </div>)
48
+ %(<div class="video-wrap"><iframe src="#{video_url}" name="UKPPlayer" title="UK Parliament Player" seamless="seamless" frameborder="0" allowfullscreen style="width: 100%; height: 100%"></iframe></div>)
48
49
  end
49
50
  end
50
51
  end
@@ -1,5 +1,5 @@
1
1
  module Parliament
2
2
  module Utils
3
- VERSION = '0.8.0'.freeze
3
+ VERSION = '0.8.1'.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.0
4
+ version: 0.8.1
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-04-19 00:00:00.000000000 Z
11
+ date: 2018-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parliament-ruby