onebox 1.8.94 → 1.8.95

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: 8c5d0d32da63ac7d93f80a99c1a908d431eb2ceb4cfa1961a8ed570139c1a729
4
- data.tar.gz: fe1243f05a5d661f7f9044c5418102cc65e1bd0950316a54e79f9b5776bad549
3
+ metadata.gz: 6d02de0d9a88959e66217ddb8ee376a74b2966329d6898141ca27c1c67bf528c
4
+ data.tar.gz: 586f0dd3b4f7ff9339d02ace072fc0e7e18b7f842e9d6a1466e6e4f69cd9ccc4
5
5
  SHA512:
6
- metadata.gz: 1b83a05ba7e0a8fd4ed50c9ab95f69765046649b867bb83d7b24f8defc3e92ffe35e852ef87ee652e5a7ff2b361e67d96453f41f30300f91290ef8257af7dce6
7
- data.tar.gz: 47503e19b6b5a2b1750d368d6188a159c36229ef990b26f2bdf8aa8eedbb78d6cf5a64b9e66abe85afebb2099d8ce1dfd7699bf3469fdd7448f96c4165f49621
6
+ metadata.gz: b0ee8ace0a72a29fdd6c8d6dabe2648863c3168dd2aa861d766a7a4b51924e6bb562347b3de252cb922d7007f6e776c5901510854aa492d9917fe27cfc8e2491
7
+ data.tar.gz: 73417906a702859c059967b3b635438883278542cc3ad4b9a70a2ff3d0408a9a33e441a79125f38db8169859bc50244a690a72fee448e11fa61be3cff6405007
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- onebox (1.8.94)
4
+ onebox (1.8.95)
5
5
  htmlentities (~> 4.3)
6
6
  moneta (~> 1.0)
7
7
  multi_json (~> 1.11)
@@ -188,7 +188,8 @@ module Onebox
188
188
  src
189
189
  end
190
190
 
191
- RFC_3986_URI_REGEX = /^(?<scheme>([^:\/?#]+):)?(?<authority>\/\/([^\/?#]*))?(?<path>[^?#]*)(\?(?<query>[^#]*))?(#(?<fragment>.*))?$/
191
+ RFC_3986_URI_REGEX ||= /^(?<scheme>([^:\/?#]+):)?(?<authority>\/\/([^\/?#]*))?(?<path>[^?#]*)(\?(?<query>[^#]*))?(#(?<fragment>.*))?$/
192
+ DOUBLE_ESCAPED_REGEXP ||= /%25([0-9a-f]{2})/i
192
193
 
193
194
  # Percent-encodes a URI query parameter per RFC3986 - https://tools.ietf.org/html/rfc3986
194
195
  def self.uri_query_encode(query_string)
@@ -219,6 +220,7 @@ module Onebox
219
220
  # URI::parse and URI::Generic.build don't like paths encoded with CGI.escape
220
221
  # URI.escape does not change / to %2F and : to %3A like CGI.escape
221
222
  encoded += URI.escape(parts[:path]) unless parts[:path].nil?
223
+ encoded.gsub!(DOUBLE_ESCAPED_REGEXP, '%\1')
222
224
 
223
225
  # each query parameter
224
226
  if !parts[:query].nil?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Onebox
4
- VERSION = "1.8.94"
4
+ VERSION = "1.8.95"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onebox
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.94
4
+ version: 1.8.95
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joanna Zeta
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2019-06-26 00:00:00.000000000 Z
13
+ date: 2019-06-27 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: multi_json