nokogiri-xmlsec1 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,39 +0,0 @@
1
- From 9cd1c3cfbd32655d60572c0a413e017260c854df Mon Sep 17 00:00:00 2001
2
- From: Daniel Veillard <veillard@redhat.com>
3
- Date: Tue, 22 Apr 2014 15:30:56 +0800
4
- Subject: [PATCH] Do not fetch external parameter entities
5
-
6
- Unless explicitely asked for when validating or replacing entities
7
- with their value. Problem pointed out by Daniel Berrange <berrange@redhat.com>
8
- ---
9
- parser.c | 14 ++++++++++++++
10
- 1 file changed, 14 insertions(+)
11
-
12
- diff --git a/parser.c b/parser.c
13
- index 9347ac9..c0dea05 100644
14
- --- a/parser.c
15
- +++ b/parser.c
16
- @@ -2598,6 +2598,20 @@ xmlParserHandlePEReference(xmlParserCtxtPtr ctxt) {
17
- xmlCharEncoding enc;
18
-
19
- /*
20
- + * Note: external parsed entities will not be loaded, it is
21
- + * not required for a non-validating parser, unless the
22
- + * option of validating, or substituting entities were
23
- + * given. Doing so is far more secure as the parser will
24
- + * only process data coming from the document entity by
25
- + * default.
26
- + */
27
- + if ((entity->etype == XML_EXTERNAL_PARAMETER_ENTITY) &&
28
- + ((ctxt->options & XML_PARSE_NOENT) == 0) &&
29
- + ((ctxt->options & XML_PARSE_DTDVALID) == 0) &&
30
- + (ctxt->validate == 0))
31
- + return;
32
- +
33
- + /*
34
- * handle the extra spaces added before and after
35
- * c.f. http://www.w3.org/TR/REC-xml#as-PE
36
- * this is done independently.
37
- --
38
- 1.8.3.2
39
-