nokogiri 1.13.2 → 1.13.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 nokogiri might be problematic. Click here for more details.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a9e9c98ef383eff954865accb42edd57b6521476c8f457e1d8530247e2bb9d5
|
4
|
+
data.tar.gz: 5c949a7d6c384851830dd42703050431dd718ee2500387c3a88ba73dbaf69d18
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05451ca1438a1bde88ab4c210d0d5a460c205c365d1853a554e2eb5b6736933dfd64a487f6e1db4a0002f517d92da22ad83e5f92b40a0639c6286f544b93fc8b
|
7
|
+
data.tar.gz: 290e2a97df760bcdfb91c3994a1062cb49ffd9f63722bf3608db2b9a2e45f1dffc14e46f2105c74133bc8bb134a77caddf8a6092d251419e904354e4580db082
|
@@ -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.
|
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-
|
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
|