actionpack 3.2.20 → 3.2.21
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of actionpack might be problematic. Click here for more details.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52cd17e210af21dfe0dffce98e8e742e8ff6130a
|
4
|
+
data.tar.gz: 0d01a402377176908f1044cc4530fd5e02f74b23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b50465ad69c39896976ea9f24d5635bfeeeb5fa9c7344216963822cb4e751f4db16adc0bcd0cbcf5bc409e5a39cf99645306cd9277e50f1af8cbc7a3e2db12c9
|
7
|
+
data.tar.gz: 3acbe7c956af42cfdb2fa3026000b3815960371568de1612b5339b7663a929b2404564acd377ae2ac63ac0618845902fb2bb25aaecbf415e7bfa707c55bf6068
|
@@ -16,9 +16,9 @@ module ActionDispatch
|
|
16
16
|
|
17
17
|
# Get a session from the cache.
|
18
18
|
def get_session(env, sid)
|
19
|
-
sid
|
20
|
-
|
21
|
-
|
19
|
+
unless sid and session = @cache.read(cache_key(sid))
|
20
|
+
sid, session = generate_sid, {}
|
21
|
+
end
|
22
22
|
[sid, session]
|
23
23
|
end
|
24
24
|
|
@@ -16,7 +16,7 @@ module ActionDispatch
|
|
16
16
|
paths = "#{full_path}#{ext}"
|
17
17
|
|
18
18
|
matches = Dir[paths]
|
19
|
-
match = matches.detect { |m| File.file?(m) }
|
19
|
+
match = matches.detect { |m| File.file?(m) && File.readable?(m) }
|
20
20
|
if match
|
21
21
|
match.sub!(@compiled_root, '')
|
22
22
|
::Rack::Utils.escape(match)
|
@@ -40,7 +40,7 @@ module ActionDispatch
|
|
40
40
|
|
41
41
|
def escape_glob_chars(path)
|
42
42
|
path.force_encoding('binary') if path.respond_to? :force_encoding
|
43
|
-
path.gsub(/[*?{}\[\]]/, "\\\\\\&")
|
43
|
+
path.gsub(/[*?{}\[\]\\]/, "\\\\\\&")
|
44
44
|
end
|
45
45
|
|
46
46
|
private
|
@@ -48,6 +48,7 @@ module ActionDispatch
|
|
48
48
|
PATH_SEPS = Regexp.union(*[::File::SEPARATOR, ::File::ALT_SEPARATOR].compact)
|
49
49
|
|
50
50
|
def clean_path_info(path_info)
|
51
|
+
path_info.force_encoding('binary') if path_info.respond_to? :force_encoding
|
51
52
|
parts = path_info.split PATH_SEPS
|
52
53
|
|
53
54
|
clean = []
|
data/lib/action_pack/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: actionpack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.2.
|
19
|
+
version: 3.2.21
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.2.
|
26
|
+
version: 3.2.21
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: activemodel
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 3.2.
|
33
|
+
version: 3.2.21
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 3.2.
|
40
|
+
version: 3.2.21
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rack-cache
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -369,7 +369,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
369
369
|
requirements:
|
370
370
|
- none
|
371
371
|
rubyforge_project:
|
372
|
-
rubygems_version: 2.
|
372
|
+
rubygems_version: 2.4.2
|
373
373
|
signing_key:
|
374
374
|
specification_version: 4
|
375
375
|
summary: Web-flow and rendering framework putting the VC in MVC (part of Rails).
|