phlex 1.7.0 → 1.7.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of phlex might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -0
- data/lib/phlex/sgml.rb +4 -1
- data/lib/phlex/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43c71026cecf29024dff9fd7d978bc25c5e4abadce4bef2c9a70f7e9f307d591
|
4
|
+
data.tar.gz: 627c81fc57dc871e8adeadf65246f68fbff2cc3f2c2c821a319b48a6f2795a00
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2c1ce387522445186b6fddcb6669836ccb976effbd6605c97a93c84f3feb778f56811ca478eefca9945d7e8e26be9bce19df45a6dc99880bdb293d07145c9ca
|
7
|
+
data.tar.gz: b4894004ccadee3da6050cdd771090aa67dbbcfae8f5b9519e33ff11bb9dc89e11f81c30b62bb2502813b29faa5de862f136907cc77b5d60af2f8ad97bba155c
|
data/CHANGELOG.md
CHANGED
data/lib/phlex/sgml.rb
CHANGED
@@ -389,8 +389,11 @@ module Phlex
|
|
389
389
|
else raise ArgumentError, "Attribute keys should be Strings or Symbols."
|
390
390
|
end
|
391
391
|
|
392
|
+
lower_name = name.downcase
|
393
|
+
next if lower_name == "href" && v.start_with?(/\s*javascript:/i)
|
394
|
+
|
392
395
|
# Detect unsafe attribute names. Attribute names are considered unsafe if they match an event attribute or include unsafe characters.
|
393
|
-
if HTML::EVENT_ATTRIBUTES[
|
396
|
+
if HTML::EVENT_ATTRIBUTES[lower_name] || name.match?(/[<>&"']/)
|
394
397
|
raise ArgumentError, "Unsafe attribute name detected: #{k}."
|
395
398
|
end
|
396
399
|
|
data/lib/phlex/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phlex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joel Drapper
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
119
|
- !ruby/object:Gem::Version
|
120
120
|
version: '0'
|
121
121
|
requirements: []
|
122
|
-
rubygems_version: 3.4.
|
122
|
+
rubygems_version: 3.4.22
|
123
123
|
signing_key:
|
124
124
|
specification_version: 4
|
125
125
|
summary: A fun framework for building views in Ruby.
|