diff options
author | Daniel Veillard <veillard@redhat.com> | 2009-08-12 15:59:01 +0200 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2009-08-12 15:59:01 +0200 |
commit | 74eb54b5b79f39b7e27f8a94c2a1425586e5353e (patch) | |
tree | d01c7dd099b0fc8f565c54ff8e278049ef349524 /HTMLtree.c | |
parent | bd56c44349d9e14ed54e77b2706d0f92d1a1f994 (diff) | |
download | android_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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |