strip-tags 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/strip-tags/matchers.rb +3 -3
- data/lib/strip-tags/version.rb +1 -1
- metadata +1 -3
- data/gemfiles/activemodel-7.0.gemfile +0 -7
- data/gemfiles/activemodel-7.1.gemfile +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0028c1ad9d486eef4c972747922e9a484fc7ff2356b488c31175eee5f08774ce'
|
4
|
+
data.tar.gz: b2cb48f07cb9e2d12e0d21bb128038c3d22fb46ef40cf36762ff5dd92c8d4804
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6cc80ad2c09f2df5eb7e6fb45c2bc50dc2d7233ce6ec4aa37ccf17690f7d7f88a3bf6fec8b547e05c2ff9c771df7db1c2ccd3a52528fdcfa05b3855d71825729
|
7
|
+
data.tar.gz: 4a0d4e2b8f0bb28024c2aea463359c7b094fd89b6b6f5de434878dad8f566a06c64f2c96289af8f84a2bc52abea96630c18085d27ddea77145938b9601d04367
|
data/Gemfile.lock
CHANGED
data/lib/strip-tags/matchers.rb
CHANGED
@@ -30,10 +30,10 @@ module StripTags
|
|
30
30
|
@attribute = attribute
|
31
31
|
subject.send("#{@attribute}=", "foo> & <<script>alert('xss')</script>")
|
32
32
|
subject.valid?
|
33
|
-
if Rails
|
34
|
-
subject.send(@attribute) == "foo> & <"
|
33
|
+
if Gem::Version.new(Rails.version) >= Gem::Version.new("7.1")
|
34
|
+
subject.send(@attribute) == "foo> & <alert('xss')"
|
35
35
|
else
|
36
|
-
subject.send(@attribute) == "foo> &
|
36
|
+
subject.send(@attribute) == "foo> & <"
|
37
37
|
end
|
38
38
|
end
|
39
39
|
end
|
data/lib/strip-tags/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: strip-tags
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Moen Wulffeld
|
@@ -53,8 +53,6 @@ files:
|
|
53
53
|
- LICENSE
|
54
54
|
- README.md
|
55
55
|
- Rakefile
|
56
|
-
- gemfiles/activemodel-7.0.gemfile
|
57
|
-
- gemfiles/activemodel-7.1.gemfile
|
58
56
|
- lib/strip-tags.rb
|
59
57
|
- lib/strip-tags/matchers.rb
|
60
58
|
- lib/strip-tags/version.rb
|