nokogiri 1.5.4.rc1-x86-mingw32 → 1.5.4.rc2-x86-mingw32

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

Potentially problematic release.


This version of nokogiri might be problematic. Click here for more details.

@@ -2,7 +2,7 @@
2
2
 
3
3
  * Features
4
4
 
5
- * The "nokogiri" script now has more verbose output when passed the `--rng` option. (Thanks, Dan Radez!)
5
+ * The "nokogiri" script now has more verbose output when passed the `--rng` option. #675 (Thanks, Dan Radez!)
6
6
  * Build support on hardened Debian systems that use `-Werror=format-security`. #680.
7
7
  * Better build support for systems with pkg-config. #584
8
8
 
@@ -10,6 +10,9 @@
10
10
 
11
11
  * Segmentation fault when creating a comment node for a DocumentFragment. #677, #678.
12
12
  * Treat '.' as xpath in at() and search(). #690
13
+ * [MRI] [Security] Default parse options for XML documents were
14
+ changed to not make network connections during document parsing,
15
+ to avoid XXE vulnerability. #693
13
16
 
14
17
 
15
18
  == 1.5.3 / 2012-06-01
@@ -2,7 +2,7 @@
2
2
 
3
3
  * Features
4
4
 
5
- * The "nokogiri" script now has more verbose output when passed the `--rng` option. (Thanks, Dan Radez!)
5
+ * The "nokogiri" script now has more verbose output when passed the `--rng` option. #675 (Thanks, Dan Radez!)
6
6
  * Build support on hardened Debian systems that use `-Werror=format-security`. #680.
7
7
  * Better build support for systems with pkg-config. #584
8
8
 
@@ -10,7 +10,9 @@
10
10
 
11
11
  * Segmentation fault when creating a comment node for a DocumentFragment. #677, #678.
12
12
  * Treat '.' as xpath in at() and search(). #690
13
-
13
+ * [MRI] [Security] Default parse options for XML documents were
14
+ changed to not make network connections during document parsing,
15
+ to avoid XXE vulnerability. #693
14
16
 
15
17
  == 1.5.3 / 2012-06-01
16
18
 
Binary file
Binary file
@@ -1,6 +1,6 @@
1
1
  module Nokogiri
2
2
  # The version of Nokogiri you are using
3
- VERSION = '1.5.4.rc1'
3
+ VERSION = '1.5.4.rc2'
4
4
 
5
5
  class VersionInfo # :nodoc:
6
6
  def jruby?
@@ -47,7 +47,7 @@ module Nokogiri
47
47
  HUGE = 1 << 19
48
48
 
49
49
  # the default options used for parsing XML documents
50
- DEFAULT_XML = RECOVER
50
+ DEFAULT_XML = RECOVER | NONET
51
51
  # the default options used for parsing HTML documents
52
52
  DEFAULT_HTML = RECOVER | NOERROR | NOWARNING | NONET
53
53
 
@@ -64,6 +64,11 @@ module Nokogiri
64
64
  self
65
65
  end
66
66
 
67
+ def no#{constant.downcase}
68
+ @options &= ~#{constant}
69
+ self
70
+ end
71
+
67
72
  def #{constant.downcase}?
68
73
  #{constant} & @options == #{constant}
69
74
  end
@@ -35,6 +35,18 @@ module Nokogiri
35
35
  assert_equal 1 << 1, options.options
36
36
  end
37
37
 
38
+ def test_unsetting
39
+ options = Nokogiri::XML::ParseOptions.new Nokogiri::XML::ParseOptions::DEFAULT_HTML
40
+ assert options.nonet?
41
+ assert options.recover?
42
+ options.nononet.norecover
43
+ assert ! options.nonet?
44
+ assert ! options.recover?
45
+ options.nonet.recover
46
+ assert options.nonet?
47
+ assert options.recover?
48
+ end
49
+
38
50
  def test_chaining
39
51
  options = Nokogiri::XML::ParseOptions.new.recover.noent
40
52
  assert options.recover?
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nokogiri
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1939456333
4
+ hash: 3478763259
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 1
8
8
  - 5
9
9
  - 4
10
10
  - rc
11
- - 1
12
- version: 1.5.4.rc1
11
+ - 2
12
+ version: 1.5.4.rc2
13
13
  platform: x86-mingw32
14
14
  authors:
15
15
  - Aaron Patterson
@@ -19,7 +19,7 @@ autorequire:
19
19
  bindir: bin
20
20
  cert_chain: []
21
21
 
22
- date: 2012-06-07 00:00:00 Z
22
+ date: 2012-06-08 00:00:00 Z
23
23
  dependencies:
24
24
  - !ruby/object:Gem::Dependency
25
25
  name: hoe-bundler