activerecord 4.1.2 → 4.1.3
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 activerecord 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: 54d877cf2dca612ca481408ab73b80142de0a312
|
4
|
+
data.tar.gz: eb54439fcecf1f63c0ee02c561aaf7b3a5809f68
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27f307b733498adb7ee0bc3c1feee3b03898258a6f0286b08740a408deb3d4aceb5652b869dad962e135bae7229f2030677e2fe3679d8bbbee58090523cafa2f
|
7
|
+
data.tar.gz: 1a88c863de3cc5141916031a7521cc61f541457625d672d064bd7f56b634d390d1484525f5037eb6e8c1a8cd4341bb3034ab866e28e99e94db88192ef0130412
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
## Rails 4.1.3 (July 2, 2014) ##
|
2
|
+
|
3
|
+
* Fix SQL Injection Vulnerability in 'range' quoting.
|
4
|
+
|
5
|
+
Fixes CVE-2014-3483
|
6
|
+
|
7
|
+
*Rafael Mendonça França*
|
8
|
+
|
9
|
+
|
1
10
|
## Rails 4.1.2 (June 26, 2014) ##
|
2
11
|
|
3
12
|
* Fix regression on eager loading association based on SQL query rather than
|
@@ -23,7 +23,8 @@ module ActiveRecord
|
|
23
23
|
case value
|
24
24
|
when Range
|
25
25
|
if /range$/ =~ sql_type
|
26
|
-
|
26
|
+
escaped = quote_string(PostgreSQLColumn.range_to_string(value))
|
27
|
+
"#{escaped}::#{sql_type}"
|
27
28
|
else
|
28
29
|
super
|
29
30
|
end
|
@@ -70,8 +71,8 @@ module ActiveRecord
|
|
70
71
|
when 'xml' then "xml '#{quote_string(value)}'"
|
71
72
|
when /^bit/
|
72
73
|
case value
|
73
|
-
when
|
74
|
-
when
|
74
|
+
when /\A[01]*\Z/ then "B'#{value}'" # Bit-string notation
|
75
|
+
when /\A[0-9A-F]*\Z/i then "X'#{value}'" # Hexadecimal notation
|
75
76
|
end
|
76
77
|
else
|
77
78
|
super
|
@@ -819,7 +819,7 @@ module ActiveRecord
|
|
819
819
|
FEATURE_NOT_SUPPORTED = "0A000" #:nodoc:
|
820
820
|
|
821
821
|
def exec_no_cache(sql, name, binds)
|
822
|
-
log(sql, name, binds) { @connection.async_exec(sql) }
|
822
|
+
log(sql, name, binds) { @connection.async_exec(sql, []) }
|
823
823
|
end
|
824
824
|
|
825
825
|
def exec_cache(sql, name, binds)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.
|
4
|
+
version: 4.1.3
|
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-07-02 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: 4.1.
|
19
|
+
version: 4.1.3
|
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: 4.1.
|
26
|
+
version: 4.1.3
|
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: 4.1.
|
33
|
+
version: 4.1.3
|
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: 4.1.
|
40
|
+
version: 4.1.3
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: arel
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -247,7 +247,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
247
247
|
version: '0'
|
248
248
|
requirements: []
|
249
249
|
rubyforge_project:
|
250
|
-
rubygems_version: 2.
|
250
|
+
rubygems_version: 2.3.0
|
251
251
|
signing_key:
|
252
252
|
specification_version: 4
|
253
253
|
summary: Object-relational mapper framework (part of Rails).
|