| 1 |
From ffc08467744bd2305d41ca882c37fa30adf3a067 Mon Sep 17 00:00:00 2001 |
| 2 |
From: Kevin Solorio <[email protected]> |
| 3 |
Date: Wed, 27 Feb 2019 14:34:17 -0800 |
| 4 |
Subject: [PATCH 2/2] update entities.c to remove handling of ssi |
| 5 |
|
| 6 |
--- |
| 7 |
entities.c | 21 --------------------- |
| 8 |
1 file changed, 21 deletions(-) |
| 9 |
|
| 10 |
diff --git a/entities.c b/entities.c |
| 11 |
index 43549bc5..5c4a2a60 100644 |
| 12 |
--- a/entities.c |
| 13 |
+++ b/entities.c |
| 14 |
@@ -592,27 +592,6 @@ xmlEncodeEntitiesInternal(xmlDocPtr doc, const xmlChar *input, int attr) { |
| 15 |
* By default one have to encode at least '<', '>', '"' and '&' ! |
| 16 |
*/ |
| 17 |
if (*cur == '<') { |
| 18 |
- const xmlChar *end; |
| 19 |
- |
| 20 |
- /* |
| 21 |
- * Special handling of server side include in HTML attributes |
| 22 |
- */ |
| 23 |
- if (html && attr && |
| 24 |
- (cur[1] == '!') && (cur[2] == '-') && (cur[3] == '-') && |
| 25 |
- ((end = xmlStrstr(cur, BAD_CAST "-->")) != NULL)) { |
| 26 |
- while (cur != end) { |
| 27 |
- *out++ = *cur++; |
| 28 |
- indx = out - buffer; |
| 29 |
- if (indx + 100 > buffer_size) { |
| 30 |
- growBufferReentrant(); |
| 31 |
- out = &buffer[indx]; |
| 32 |
- } |
| 33 |
- } |
| 34 |
- *out++ = *cur++; |
| 35 |
- *out++ = *cur++; |
| 36 |
- *out++ = *cur++; |
| 37 |
- continue; |
| 38 |
- } |
| 39 |
*out++ = '&'; |
| 40 |
*out++ = 'l'; |
| 41 |
*out++ = 't'; |
| 42 |
-- |
| 43 |
2.16.2 |
| 44 |
|