rack-utf8_sanitizer 1.10.0 → 1.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rack/utf8_sanitizer.rb +5 -1
- data/rack-utf8_sanitizer.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82e811bd6d8b84490a60a5bb33ed291fadcfb7311648081083b61ebf860b1e0a
|
4
|
+
data.tar.gz: cbe49d5c3c9d7333053881defc88facc7a5120e4b6b26a66b8c025dcfdd6b264
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1ca5bc38275c76c39d3fec9ada79b3472ba4bf03c28126961676584407de2f6f910f45eea2f4c96c33b533615313a529f562218473f15d7cb51d22cf61d3dd9
|
7
|
+
data.tar.gz: 1d224db1938b544b0f3053d14ce269fba82c89973b5ac142ad7233168967eeb8f0784e7c9710e4e30b66d807f4c164f92cf81dd79bbc14eca3bfd941ada8585b
|
data/lib/rack/utf8_sanitizer.rb
CHANGED
@@ -256,7 +256,11 @@ module Rack
|
|
256
256
|
# Performs the reverse function of `unescape_unreserved`. Unlike
|
257
257
|
# the previous function, we can reuse the logic in URI#encode
|
258
258
|
def escape_unreserved(input)
|
259
|
-
URI::RFC2396_PARSER
|
259
|
+
if Object.const_defined?("URI::RFC2396_PARSER")
|
260
|
+
URI::RFC2396_PARSER.escape(input, UNSAFE)
|
261
|
+
else
|
262
|
+
URI::DEFAULT_PARSER.escape(input, UNSAFE)
|
263
|
+
end
|
260
264
|
end
|
261
265
|
|
262
266
|
def sanitize_string(input)
|
data/rack-utf8_sanitizer.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-utf8_sanitizer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.10.
|
4
|
+
version: 1.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Catherine
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-01-
|
11
|
+
date: 2025-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|