Sha256: 505a816e3fbcfcb4c681512f5d674ab098597c9cafd8ae944348c00128c9f88f

Contents?: true

Size: 1.17 KB

Versions: 145

Compression:

Stored size: 1.17 KB

Contents

From ffc08467744bd2305d41ca882c37fa30adf3a067 Mon Sep 17 00:00:00 2001
From: Kevin Solorio <soloriok@gmail.com>
Date: Wed, 27 Feb 2019 14:34:17 -0800
Subject: [PATCH 2/2] update entities.c to remove handling of ssi

---
 entities.c | 21 ---------------------
 1 file changed, 21 deletions(-)

diff --git a/entities.c b/entities.c
index 43549bc5..5c4a2a60 100644
--- a/entities.c
+++ b/entities.c
@@ -592,27 +592,6 @@ xmlEncodeEntitiesInternal(xmlDocPtr doc, const xmlChar *input, int attr) {
 	 * By default one have to encode at least '<', '>', '"' and '&' !
 	 */
 	if (*cur == '<') {
-	    const xmlChar *end;
-
-	    /*
-	     * Special handling of server side include in HTML attributes
-	     */
-	    if (html && attr &&
-	        (cur[1] == '!') && (cur[2] == '-') && (cur[3] == '-') &&
-	        ((end = xmlStrstr(cur, BAD_CAST "-->")) != NULL)) {
-	        while (cur != end) {
-		    *out++ = *cur++;
-		    indx = out - buffer;
-		    if (indx + 100 > buffer_size) {
-			growBufferReentrant();
-			out = &buffer[indx];
-		    }
-		}
-		*out++ = *cur++;
-		*out++ = *cur++;
-		*out++ = *cur++;
-		continue;
-	    }
 	    *out++ = '&';
 	    *out++ = 'l';
 	    *out++ = 't';
-- 
2.16.2

Version data entries

145 entries across 127 versions & 10 rubygems

Version Path
nokogiri-1.13.1 patches/libxml2/0002-Update-entities-to-remove-handling-of-ssi.patch
nokogiri-1.13.0 patches/libxml2/0002-Update-entities-to-remove-handling-of-ssi.patch
nokogiri-1.12.5 patches/libxml2/0002-Update-entities-to-remove-handling-of-ssi.patch
nokogiri-1.12.4 patches/libxml2/0002-Update-entities-to-remove-handling-of-ssi.patch
nokogiri-1.12.3 patches/libxml2/0002-Update-entities-to-remove-handling-of-ssi.patch
nokogiri-1.12.2 patches/libxml2/0002-Update-entities-to-remove-handling-of-ssi.patch
nokogiri-1.12.1 patches/libxml2/0002-Update-entities-to-remove-handling-of-ssi.patch
nokogiri-1.12.0 patches/libxml2/0002-Update-entities-to-remove-handling-of-ssi.patch
nokogiri-1.12.0.rc1 patches/libxml2/0002-Update-entities-to-remove-handling-of-ssi.patch
nokogiri-1.11.7 patches/libxml2/0002-Update-entities-to-remove-handling-of-ssi.patch
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/tdiary-5.1.4/vendor/bundle/ruby/2.7.0/gems/nokogiri-1.10.10/patches/libxml2/0003-Update-entities-to-remove-handling-of-ssi.patch
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/nokogiri-1.10.10/patches/libxml2/0003-Update-entities-to-remove-handling-of-ssi.patch
nokogiri-1.11.6 patches/libxml2/0002-Update-entities-to-remove-handling-of-ssi.patch
nokogiri-1.11.5 patches/libxml2/0002-Update-entities-to-remove-handling-of-ssi.patch
nokogiri-1.11.4 patches/libxml2/0002-Update-entities-to-remove-handling-of-ssi.patch
nokogiri-1.11.3 patches/libxml2/0003-Update-entities-to-remove-handling-of-ssi.patch
nokogiri-1.11.2 patches/libxml2/0003-Update-entities-to-remove-handling-of-ssi.patch
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/tdiary-5.1.4/vendor/bundle/ruby/2.7.0/gems/nokogiri-1.10.10/patches/libxml2/0003-Update-entities-to-remove-handling-of-ssi.patch
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/nokogiri-1.10.10/patches/libxml2/0003-Update-entities-to-remove-handling-of-ssi.patch
video_chat_get-0.1.9 vendor/bundle/ruby/2.5.0/gems/nokogiri-1.10.9/patches/libxml2/0003-Update-entities-to-remove-handling-of-ssi.patch