onebox 1.8.5 → 1.8.6

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: 2e6396e2c853cabff86cb24b13b78d1bc5593b63
4
- data.tar.gz: 13b5abf77b2af2c082c89136c9244759193fbd7a
3
+ metadata.gz: 389009d0633bfd3396fba23cb000eff26cb019d5
4
+ data.tar.gz: b2fac0d0854c26b0be21586636488f64936fb7c9
5
5
  SHA512:
6
- metadata.gz: fd3d129640983ed1d96e8b769c24e0575d66810ef01713e5c22f84ffbd70d0370162e789652a876f769c12c73e9fdfcd9c035ee9467bc4083125f38ce4b72cb0
7
- data.tar.gz: af3d5855ef0b77552f5c9b964dead3610872a509a9c72f3441b87d442268bcbf567dd226a61b837aaf5204ea68464fd12129010dcf79b6b3884f9df8d2d330a3
6
+ metadata.gz: 494c648079d4ed949fad65c1a56f1b63d871fb5a49450c53ddc9242264c9038a9bc499d980d29636612f6089853e86cb7989da2ef7d039e45a3787e7a1d68ba4
7
+ data.tar.gz: 45b227ce833a00abd7783120aeb55df26cb98323d9be012c9f3d1eaf1453ec71c554e41156828ce28b322f130c5e43be1f376936fe0981a6870a27919b612eed
@@ -205,7 +205,7 @@ module Onebox
205
205
 
206
206
  d[:description] ||= d[:summary]
207
207
  if !Onebox::Helpers.blank?(d[:description])
208
- d[:description] = html_entities.decode(Onebox::Helpers.truncate(d[:description].strip, 250))
208
+ d[:description] = html_entities.decode(Sanitize.fragment(Onebox::Helpers.truncate(d[:description].strip, 250)))
209
209
  end
210
210
 
211
211
  if !Onebox::Helpers.blank?(d[:domain])
@@ -1,3 +1,3 @@
1
1
  module Onebox
2
- VERSION = "1.8.5"
2
+ VERSION = "1.8.6"
3
3
  end
@@ -45,7 +45,7 @@
45
45
  <meta property="og:site_name" content="Mail Online" />
46
46
  <meta property="og:title" content="Brutality or justice? The truth behind the tarred and feathered drug dealer" />
47
47
  <meta property="og:type" content="article" />
48
- <meta property="og:description" content="It was the most chilling image of the week ... a drug-dealer tarred and feathered in a medieval act of retribution. Sheer savagery? Or the desperate response of a community that decided to fight back?" />
48
+ <meta property="og:description" content="It was the most &lt;b&gt;chilling&lt;/b&gt; image of the week ... a drug-dealer tarred and feathered in a medieval act of retribution. Sheer savagery? Or the desperate response of a community that decided to fight back?" />
49
49
  <meta property="og:url" content="http://www.dailymail.co.uk/news/article-479146/Brutality-justice-The-truth-tarred-feathered-drug-dealer.html" />
50
50
  <meta property="og:image" content="" />
51
51
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onebox
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.5
4
+ version: 1.8.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joanna Zeta
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-05-12 00:00:00.000000000 Z
13
+ date: 2017-05-17 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: multi_json