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 +4 -4
- data/ext/cgi/escape/escape.c +2 -1
- data/lib/cgi/cookie.rb +0 -1
- data/lib/cgi.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f183a3260e82566353d9db4cb76de8d723bacf7d4daa78395f952855a5959c37
|
4
|
+
data.tar.gz: 5a765bf05577575a44ae31338a8cd7cdec8f195aeb443a3cad900a4668bbdd78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 797faf906f497d31c332bbc5af7fabee946027e07b4f887ecc808deb111316a627f489d65e76d05245515403079ce7731ada777dc656ba8b6c167dd31ec3ca15
|
7
|
+
data.tar.gz: 229d5e80117e4e8162a5b4a1c4b0fb8b4cbbf8cf3282721de720161dac2ebf92ccb21dece53dba50ef78c05ce1d295e314c7967dbc0061a3981ce43a515757dc
|
data/ext/cgi/escape/escape.c
CHANGED
@@ -36,7 +36,8 @@ static VALUE
|
|
36
36
|
optimized_escape_html(VALUE str)
|
37
37
|
{
|
38
38
|
VALUE vbuf;
|
39
|
-
|
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
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.
|
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:
|
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.
|
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: []
|