aboutsummaryrefslogtreecommitdiffstats
path: root/HTMLtree.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@redhat.com>2009-08-12 15:59:01 +0200
committerDaniel Veillard <veillard@redhat.com>2009-08-12 15:59:01 +0200
commit74eb54b5b79f39b7e27f8a94c2a1425586e5353e (patch)
treed01c7dd099b0fc8f565c54ff8e278049ef349524 /HTMLtree.c
parentbd56c44349d9e14ed54e77b2706d0f92d1a1f994 (diff)
downloadandroid_external_libxml2-74eb54b5b79f39b7e27f8a94c2a1425586e5353e.tar.gz
android_external_libxml2-74eb54b5b79f39b7e27f8a94c2a1425586e5353e.tar.bz2
android_external_libxml2-74eb54b5b79f39b7e27f8a94c2a1425586e5353e.zip
575875 don't output charset=html
* HTMLtree.c: don't output charset=html in htmlSetMetaEncoding() as this is clearly a libxml2 only thingused for import only
Diffstat (limited to 'HTMLtree.c')
-rw-r--r--HTMLtree.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/HTMLtree.c b/HTMLtree.c
index 37999f79..d55ff286 100644
--- a/HTMLtree.c
+++ b/HTMLtree.c
@@ -168,6 +168,10 @@ htmlSetMetaEncoding(htmlDocPtr doc, const xmlChar *encoding) {
if (doc == NULL)
return(-1);
+ /* html isn't a real encoding it's just libxml2 way to get entities */
+ if (!xmlStrcasecmp(encoding, BAD_CAST "html"))
+ return(-1);
+
if (encoding != NULL) {
snprintf(newcontent, sizeof(newcontent), "text/html; charset=%s",
(char *)encoding);