distack-urlsign 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/distack/urlsign/signer.rb +1 -1
- data/lib/distack/urlsign/version.rb +1 -1
- metadata +6 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: d8bf28b92db9b96ee64d93239c8aec5ae0888db8da7fabbc8d4391554c99295b
|
4
|
+
data.tar.gz: e64f55df83f3820c5aca2b40040230db7d739bf26e8cdab8d607535e8c16f33a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f265a643120ac6b637e0cded9f532709c853e416006ad9336e0a4f7a700816ca31dc4c08077060417b64bd21c3da8213c8bb9416c95aa9a4b6e89c06e9fc923
|
7
|
+
data.tar.gz: 6360cf15b12d4383f41d07fe931dd17e22e6869d4d24487923d7506d9f912f19cf86c29813b1ee4cac54e56ce93516498d032085015673728ccf5de5802eac52
|
@@ -59,7 +59,7 @@ module Distack::URLSign
|
|
59
59
|
rawsig = OpenSSL::HMAC.digest(digest, @key, chunks.join)
|
60
60
|
signature = Base64.urlsafe_encode64(rawsig)
|
61
61
|
|
62
|
-
if secure_compare(signature,
|
62
|
+
if secure_compare(signature, CGI.unescape(q["_signature"]).to_s)
|
63
63
|
new_url = url.dup
|
64
64
|
new_url.query = original_qs
|
65
65
|
new_url
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: distack-urlsign
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rodrigo Kochenburger
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -106,7 +106,7 @@ files:
|
|
106
106
|
homepage: https://github.com/distack/urlsign-rb
|
107
107
|
licenses: []
|
108
108
|
metadata: {}
|
109
|
-
post_install_message:
|
109
|
+
post_install_message:
|
110
110
|
rdoc_options: []
|
111
111
|
require_paths:
|
112
112
|
- lib
|
@@ -121,9 +121,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
121
|
- !ruby/object:Gem::Version
|
122
122
|
version: '0'
|
123
123
|
requirements: []
|
124
|
-
|
125
|
-
|
126
|
-
signing_key:
|
124
|
+
rubygems_version: 3.1.6
|
125
|
+
signing_key:
|
127
126
|
specification_version: 4
|
128
127
|
summary: urlsign is a simple HMAC-based implementation for URL signing and verification
|
129
128
|
test_files: []
|