nokogiri 1.13.2 → 1.13.3

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.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 70ba1f7df1f7cfb3938c7baea05aeee3e433175e879715fbe1741f76f8ce08d5
4
- data.tar.gz: e880eb829f99a7523c03f79f76ba811e4b0b7ad92702058606785255c1c3c047
3
+ metadata.gz: 3a9e9c98ef383eff954865accb42edd57b6521476c8f457e1d8530247e2bb9d5
4
+ data.tar.gz: 5c949a7d6c384851830dd42703050431dd718ee2500387c3a88ba73dbaf69d18
5
5
  SHA512:
6
- metadata.gz: 337d0e021fd058340333e001464e1aedc51f9ca67935058d25e00f807c7aefc0e53eb05c141cb58f4a311f6e7ef7743b4ea4fda0cbb18162db8454f06594be5b
7
- data.tar.gz: c68d0f6a067e20d1c3df94565b010fdadabb56dc58b6f54dede92884b9310bd799053af4c5da43dd216a5f5ebf159d873cd4f8fd6241923cc4053ff21ff99401
6
+ metadata.gz: 05451ca1438a1bde88ab4c210d0d5a460c205c365d1853a554e2eb5b6736933dfd64a487f6e1db4a0002f517d92da22ad83e5f92b40a0639c6286f544b93fc8b
7
+ data.tar.gz: 290e2a97df760bcdfb91c3994a1062cb49ffd9f63722bf3608db2b9a2e45f1dffc14e46f2105c74133bc8bb134a77caddf8a6092d251419e904354e4580db082
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Nokogiri
4
4
  # The version of Nokogiri you are using
5
- VERSION = "1.13.2"
5
+ VERSION = "1.13.3"
6
6
  end
@@ -0,0 +1,45 @@
1
+ From ddc5f3d22644e0f6fbcc20541c86825757ffee62 Mon Sep 17 00:00:00 2001
2
+ From: Mike Dalessio <mike.dalessio@gmail.com>
3
+ Date: Mon, 21 Feb 2022 18:27:45 -0500
4
+ Subject: [PATCH] Revert "Different approach to fix quadratic behavior in HTML
5
+ push parser"
6
+
7
+ This reverts commit 798bdf13f6964a650b9a0b7b4b3a769f6f1d509a.
8
+ ---
9
+ HTMLparser.c | 14 +-------------
10
+ 1 file changed, 1 insertion(+), 13 deletions(-)
11
+
12
+ diff --git a/HTMLparser.c b/HTMLparser.c
13
+ index eba2d7c..c0b8119 100644
14
+ --- a/HTMLparser.c
15
+ +++ b/HTMLparser.c
16
+ @@ -3960,25 +3960,13 @@ htmlParseStartTag(htmlParserCtxtPtr ctxt) {
17
+ htmlParseErr(ctxt, XML_ERR_NAME_REQUIRED,
18
+ "htmlParseStartTag: invalid element name\n",
19
+ NULL, NULL);
20
+ - /*
21
+ - * The recovery code is disabled for now as it can result in
22
+ - * quadratic behavior with the push parser. htmlParseStartTag
23
+ - * must consume all content up to the final '>' in order to avoid
24
+ - * rescanning for this terminator.
25
+ - *
26
+ - * For a proper fix in line with HTML5, htmlParseStartTag and
27
+ - * htmlParseElement should only be called when there's an ASCII
28
+ - * alpha character following the initial '<'. Otherwise, the '<'
29
+ - * should be emitted as text (unless followed by '!', '/' or '?').
30
+ - */
31
+ -#if 0
32
+ /* if recover preserve text on classic misconstructs */
33
+ if ((ctxt->recovery) && ((IS_BLANK_CH(CUR)) || (CUR == '<') ||
34
+ (CUR == '=') || (CUR == '>') || (((CUR >= '0') && (CUR <= '9'))))) {
35
+ htmlParseCharDataInternal(ctxt, '<');
36
+ return(-1);
37
+ }
38
+ -#endif
39
+ +
40
+
41
+ /* Dump the bogus tag like browsers do */
42
+ while ((CUR != 0) && (CUR != '>') &&
43
+ --
44
+ 2.31.0
45
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nokogiri
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.13.2
4
+ version: 1.13.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Dalessio
@@ -20,7 +20,7 @@ authors:
20
20
  autorequire:
21
21
  bindir: bin
22
22
  cert_chain: []
23
- date: 2022-02-21 00:00:00.000000000 Z
23
+ date: 2022-02-22 00:00:00.000000000 Z
24
24
  dependencies:
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: mini_portile2
@@ -492,6 +492,7 @@ files:
492
492
  - patches/libxml2/0006-update-automake-files-for-arm64.patch
493
493
  - patches/libxml2/0008-htmlParseComment-handle-abruptly-closed-comments.patch
494
494
  - patches/libxml2/0009-allow-wildcard-namespaces.patch
495
+ - patches/libxml2/0010-Revert-Different-approach-to-fix-quadratic-behavior.patch
495
496
  - patches/libxslt/0001-update-automake-files-for-arm64.patch
496
497
  - ports/archives/libxml2-2.9.13.tar.xz
497
498
  - ports/archives/libxslt-1.1.35.tar.xz