cgi 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.

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: 79fa55922a9239492da428a497c0afe238b14861ff290d00ae91d1f9628a4482
4
- data.tar.gz: 5bc6b4a730827de9ad9c2d066f7323f5c6bf0a00a2b3bba213601aaeebe93e9c
3
+ metadata.gz: f183a3260e82566353d9db4cb76de8d723bacf7d4daa78395f952855a5959c37
4
+ data.tar.gz: 5a765bf05577575a44ae31338a8cd7cdec8f195aeb443a3cad900a4668bbdd78
5
5
  SHA512:
6
- metadata.gz: 0c30caae01d0fecf1aa32882f3fecb68fb92469552a58188e80a8a73dc4bb0205706a606c6fb1fbcbca530663629678b1e370e816637953136da846fd84a5917
7
- data.tar.gz: 86e69322e9f99d7652de6cb2411b5276dd99a61573b74fd985e36ac3270fae4d18c50b6ba277221b2a65342707e907721a9c53baebe1597c8b13c53dacd6f6af
6
+ metadata.gz: 797faf906f497d31c332bbc5af7fabee946027e07b4f887ecc808deb111316a627f489d65e76d05245515403079ce7731ada777dc656ba8b6c167dd31ec3ca15
7
+ data.tar.gz: 229d5e80117e4e8162a5b4a1c4b0fb8b4cbbf8cf3282721de720161dac2ebf92ccb21dece53dba50ef78c05ce1d295e314c7967dbc0061a3981ce43a515757dc
@@ -36,7 +36,8 @@ static VALUE
36
36
  optimized_escape_html(VALUE str)
37
37
  {
38
38
  VALUE vbuf;
39
- char *buf = ALLOCV_N(char, vbuf, RSTRING_LEN(str) * HTML_ESCAPE_MAX_LEN);
39
+ typedef char escape_buf[HTML_ESCAPE_MAX_LEN];
40
+ char *buf = *ALLOCV_N(escape_buf, vbuf, RSTRING_LEN(str));
40
41
  const char *cstr = RSTRING_PTR(str);
41
42
  const char *end = cstr + RSTRING_LEN(str);
42
43
 
data/lib/cgi/cookie.rb CHANGED
@@ -159,7 +159,6 @@ class CGI
159
159
  raw_cookie.split(/;\s?/).each do |pairs|
160
160
  name, values = pairs.split('=',2)
161
161
  next unless name and values
162
- name = CGI.unescape(name)
163
162
  values ||= ""
164
163
  values = values.split('&').collect{|v| CGI.unescape(v,@@accept_charset) }
165
164
  if cookies.has_key?(name)
data/lib/cgi.rb CHANGED
@@ -288,7 +288,7 @@
288
288
  #
289
289
 
290
290
  class CGI
291
- VERSION = "0.2.0"
291
+ VERSION = "0.2.1"
292
292
  end
293
293
 
294
294
  require 'cgi/core'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cgi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yukihiro Matsumoto
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-12-22 00:00:00.000000000 Z
11
+ date: 2021-11-24 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Support for the Common Gateway Interface protocol.
14
14
  email:
@@ -43,7 +43,7 @@ licenses:
43
43
  metadata:
44
44
  homepage_uri: https://github.com/ruby/cgi
45
45
  source_code_uri: https://github.com/ruby/cgi
46
- post_install_message:
46
+ post_install_message:
47
47
  rdoc_options: []
48
48
  require_paths:
49
49
  - lib
@@ -58,8 +58,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
58
58
  - !ruby/object:Gem::Version
59
59
  version: '0'
60
60
  requirements: []
61
- rubygems_version: 3.2.2
62
- signing_key:
61
+ rubygems_version: 3.3.0.dev
62
+ signing_key:
63
63
  specification_version: 4
64
64
  summary: Support for the Common Gateway Interface protocol.
65
65
  test_files: []