loofah 2.1.0 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of loofah might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 13e19d4b2c9e5b356dbb76d7948604f0d8dbcce3
4
- data.tar.gz: 6a74873ffe59ebca17b477993527d0766eb234ac
3
+ metadata.gz: ca2c20c5ce7252fd9d37c4588ce3d505e39480dc
4
+ data.tar.gz: eec13222402419857eb4d1cffbde0fcf837b59c3
5
5
  SHA512:
6
- metadata.gz: ccdaffd6dd04b57d35941082b95f0605ff8778d167b4d37fca6fa9654b7734c1eb820507e604c395d97a0bfa6dd8196db32200fa6e0ac8779a969252424ca9fe
7
- data.tar.gz: 43650a3a8b6c437f3bf323b1aa288ed1b0aa3e51cc0710ff508e2443a066c82c50fdccbaadd9e30910176f8fc1488c8613b5d75c591534aab2fc4b6e2cfca8a3
6
+ metadata.gz: 2d351e77bef7101ba64be53b98e5630597aa2e72af8e2940d10c79f6479325560069b8daff12091fd4f2eb5c562b8bcbfd6bef53501a0c80d42c9850ebfd4f13
7
+ data.tar.gz: 8261bcadedc0943141eb21b198553a7151f030d1f381cf9427a9b9985ff0a6c59e65c95141afc4d48e284d0a38f9b2ce53e02d96cfdf3e99475ab5ee222f9e68
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.1.1 / 2017-09-24
4
+
5
+ Bugfixes:
6
+
7
+ * Removed warning for unused variable. #124 (Thanks, @y-yagi!)
8
+
9
+
3
10
  ## 2.1.0 / 2017-09-24
4
11
 
5
12
  Notes:
@@ -27,7 +27,7 @@ require 'loofah/html/document_fragment'
27
27
  #
28
28
  module Loofah
29
29
  # The version of Loofah you are using
30
- VERSION = '2.1.0'
30
+ VERSION = '2.1.1'
31
31
 
32
32
  class << self
33
33
  # Shortcut for Loofah::HTML::Document.parse
@@ -44,7 +44,7 @@ module Loofah
44
44
  elsif val_unescaped.split(WhiteList::PROTOCOL_SEPARATOR)[0] == 'data'
45
45
  # permit only allowed data mediatypes
46
46
  mediatype = val_unescaped.split(WhiteList::PROTOCOL_SEPARATOR)[1]
47
- mediatype, base64 = mediatype.split(';')[0..1] if mediatype
47
+ mediatype, _ = mediatype.split(';')[0..1] if mediatype
48
48
  if mediatype && !WhiteList::ALLOWED_URI_DATA_MEDIATYPES.include?(mediatype)
49
49
  attr_node.remove
50
50
  next
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: loofah
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Dalessio
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-09-24 00:00:00.000000000 Z
12
+ date: 2017-09-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri