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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c33079dde3e7e3efb8c46742a50303be620b316243b5e11c5f026a89ce29bf7d
4
- data.tar.gz: 537ff74a7f0c3edfe1bc3904540ae3c95c4ed08f15198a8872bf25a055376673
3
+ metadata.gz: 82e811bd6d8b84490a60a5bb33ed291fadcfb7311648081083b61ebf860b1e0a
4
+ data.tar.gz: cbe49d5c3c9d7333053881defc88facc7a5120e4b6b26a66b8c025dcfdd6b264
5
5
  SHA512:
6
- metadata.gz: 787fbd5b17de52dbd26bcef3e64acb359d026eb6eeb3f5900fa0fe641980235f795c0fa2067693ab2630b2781e8d8a9c03fda141e7ad2fbca6c65f663b571795
7
- data.tar.gz: be57486cc8be56299013bf3b101363702a8bc2af26746293e6661dd762b11737a5ae76c1f14373d5200772a3e229b19c7687f3c1855fc1950256cf4e750e3ca8
6
+ metadata.gz: d1ca5bc38275c76c39d3fec9ada79b3472ba4bf03c28126961676584407de2f6f910f45eea2f4c96c33b533615313a529f562218473f15d7cb51d22cf61d3dd9
7
+ data.tar.gz: 1d224db1938b544b0f3053d14ce269fba82c89973b5ac142ad7233168967eeb8f0784e7c9710e4e30b66d807f4c164f92cf81dd79bbc14eca3bfd941ada8585b
@@ -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.escape(input, UNSAFE)
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)
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification.new do |gem|
5
5
  gem.name = "rack-utf8_sanitizer"
6
- gem.version = '1.10.0'
6
+ gem.version = '1.10.1'
7
7
  gem.authors = ["Catherine"]
8
8
  gem.license = "MIT"
9
9
  gem.email = ["whitequark@whitequark.org"]
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.0
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-08 00:00:00.000000000 Z
11
+ date: 2025-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack