[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[microdc-devel] patch for escaped xml characters in filelist bug
From: |
Yaohan Chen |
Subject: |
[microdc-devel] patch for escaped xml characters in filelist bug |
Date: |
Fri, 31 Aug 2007 12:35:57 -0400 |
User-agent: |
KMail/1.9.7 |
A few posts reported problems with remote files containing characters such as
&. They were listed in XML escaped form, such as &, and the get file
command sent to the remote appeared to also use the escaped form, and the
remote would not be able to find the file. The following patch fixes these
problems. In short, just add
xmlCtxtUseOptions(ctxt, XML_PARSE_NOENT);
before the xmlParseDocument(ctxt) lines of both filelist_xml_open and
filelist_bzxml_open functions in src/xml_flist.c.
Yaohan Chen
--- microdc2-0.15.6.original/microdc2-0.15.6/src/xml_flist.c 2006-12-24
11:54:36.000000000 -0500
+++ microdc2-0.15.6/src/xml_flist.c 2007-08-31 12:13:31.000000000 -0400
@@ -469,6 +469,7 @@
sax.endElement = end_element_callback;
xmlParserCtxtPtr ctxt = xmlCreateIOParserCtxt(&sax, &state_ctxt,
read_plain_xml, NULL, &io_ctxt, XML_CHAR_ENCODING_UTF8);
+ xmlCtxtUseOptions(ctxt, XML_PARSE_NOENT);
xmlParseDocument(ctxt);
xmlFreeParserCtxt(ctxt);
@@ -497,6 +498,7 @@
sax.endElement = end_element_callback;
xmlParserCtxtPtr ctxt = xmlCreateIOParserCtxt(&sax, &state_ctxt,
read_bzip2_xml, NULL, &io_ctxt, XML_CHAR_ENCODING_UTF8);
+ xmlCtxtUseOptions(ctxt, XML_PARSE_NOENT);
xmlParseDocument(ctxt);
xmlFreeParserCtxt(ctxt);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [microdc-devel] patch for escaped xml characters in filelist bug,
Yaohan Chen <=