cgi 0.3.5.1-java → 0.3.6-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of cgi might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 702c43270ee3adc125fe63ef1c84f17bfc60eac9271252811975af1dd7bb8f7f
4
- data.tar.gz: c4286edb13a482d6544fc37b0b000f8d8d01fa70cf0db52e74ea701462276ad3
3
+ metadata.gz: e05ee42fa348eb5b13b28e4324e12835e8d81dabbacd324f4c78d9e98e0e27f7
4
+ data.tar.gz: 977e68e4e6cb3ecc1434324b131b359c0fc1be2ccc306cc8876f8e94fe394daa
5
5
  SHA512:
6
- metadata.gz: d452a7cd25f0d25cacffc44647d34f8a7f21d732e079c8d53b27cf3ec7eb90ed11165a96cf9d35e338c39234f343139f8241649cc08eacc46e1eda3962ffc94c
7
- data.tar.gz: 8714c6c66a93db1a78ae04087da5748a5f2f4d867ea12f083672afaed7cf8c8c97b131adcb21d32ec41feca9ef672a66c4533589eed8605fc4940aafe896b15f
6
+ metadata.gz: c965a5b3b2c3187d4d9b45223f26ca37f7919ba99253ecb8ba20fcae8e368121c70421283f1c3fce4cfa23549da9c064ee221c85c4a1660d075e8a0a54b395df
7
+ data.tar.gz: c5a55ab4134a59c91f5c55c693cb81cb94dec96bff6e69b506cff35595b344007e222c2cf3ad46b1fe06e09a3977eb11816ceb804c4be9269559745f0ce5fcc6
data/lib/cgi/cookie.rb CHANGED
@@ -42,7 +42,7 @@ class CGI
42
42
 
43
43
  TOKEN_RE = %r"\A[[!-~]&&[^()<>@,;:\\\"/?=\[\]{}]]+\z"
44
44
  PATH_VALUE_RE = %r"\A[[ -~]&&[^;]]*\z"
45
- DOMAIN_VALUE_RE = %r"\A(?<label>(?!-)[-A-Za-z0-9]+(?<!-))(?:\.\g<label>)*\z"
45
+ DOMAIN_VALUE_RE = %r"\A\.?(?<label>(?!-)[-A-Za-z0-9]+(?<!-))(?:\.\g<label>)*\z"
46
46
 
47
47
  # Create a new CGI::Cookie object.
48
48
  #
@@ -190,10 +190,9 @@ class CGI
190
190
  values ||= ""
191
191
  values = values.split('&').collect{|v| CGI.unescape(v,@@accept_charset) }
192
192
  if cookies.has_key?(name)
193
- cookies[name].concat(values)
194
- else
195
- cookies[name] = Cookie.new(name, *values)
193
+ values = cookies[name].value + values
196
194
  end
195
+ cookies[name] = Cookie.new(name, *values)
197
196
  end
198
197
 
199
198
  cookies
data/lib/cgi/escape.jar CHANGED
Binary file
data/lib/cgi/util.rb CHANGED
@@ -178,7 +178,7 @@ module CGI::Util
178
178
  def escapeElement(string, *elements)
179
179
  elements = elements[0] if elements[0].kind_of?(Array)
180
180
  unless elements.empty?
181
- string.gsub(/<\/?(?:#{elements.join("|")})\b[^<>]*+>?/im) do
181
+ string.gsub(/<\/?(?:#{elements.join("|")})(?!\w)(?:.|\n)*?>/i) do
182
182
  CGI.escapeHTML($&)
183
183
  end
184
184
  else
@@ -198,7 +198,7 @@ module CGI::Util
198
198
  def unescapeElement(string, *elements)
199
199
  elements = elements[0] if elements[0].kind_of?(Array)
200
200
  unless elements.empty?
201
- string.gsub(/&lt;\/?(?:#{elements.join("|")})\b(?>[^&]+|&(?![gl]t;)\w+;)*(?:&gt;)?/im) do
201
+ string.gsub(/&lt;\/?(?:#{elements.join("|")})(?!\w)(?:.|\n)*?&gt;/i) do
202
202
  unescapeHTML($&)
203
203
  end
204
204
  else
data/lib/cgi.rb CHANGED
@@ -288,7 +288,7 @@
288
288
  #
289
289
 
290
290
  class CGI
291
- VERSION = "0.3.5.1"
291
+ VERSION = "0.3.6"
292
292
  end
293
293
 
294
294
  require 'cgi/core'
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cgi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5.1
4
+ version: 0.3.6
5
5
  platform: java
6
6
  authors:
7
7
  - Yukihiro Matsumoto
8
+ autorequire:
8
9
  bindir: bin
9
10
  cert_chain: []
10
- date: 2025-02-26 00:00:00.000000000 Z
11
+ date: 2022-11-28 00:00:00.000000000 Z
11
12
  dependencies: []
12
13
  description: Support for the Common Gateway Interface protocol.
13
14
  email:
@@ -34,6 +35,7 @@ licenses:
34
35
  metadata:
35
36
  homepage_uri: https://github.com/ruby/cgi
36
37
  source_code_uri: https://github.com/ruby/cgi
38
+ post_install_message:
37
39
  rdoc_options: []
38
40
  require_paths:
39
41
  - lib
@@ -49,7 +51,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
49
51
  - !ruby/object:Gem::Version
50
52
  version: '0'
51
53
  requirements: []
52
- rubygems_version: 3.6.5
54
+ rubygems_version: 3.3.25
55
+ signing_key:
53
56
  specification_version: 4
54
57
  summary: Support for the Common Gateway Interface protocol.
55
58
  test_files: []