Undoing the patch that fixed this problem. In fact, there was no
problem and the patch was wrong. git-svn-id: https://pupnp.svn.sourceforge.net/svnroot/pupnp/trunk@442 119443c7-1b9e-41f8-b6fc-b9c35fce742c
This commit is contained in:
parent
087e675c94
commit
46bc551a48
@ -2,6 +2,14 @@
|
|||||||
Version 1.8.0
|
Version 1.8.0
|
||||||
*******************************************************************************
|
*******************************************************************************
|
||||||
|
|
||||||
|
2008-06-13 Marcelo Jimenez <mroberto(at)users.sourceforge.net>
|
||||||
|
* SF Bug Tracker [ 1984541 ]
|
||||||
|
ixmlDocumenttoString does not render the namespace tag.
|
||||||
|
Submitted By: Beliveau - belivo
|
||||||
|
|
||||||
|
Undoing the patch that fixed this problem. In fact, there was no
|
||||||
|
problem and the patch was wrong.
|
||||||
|
|
||||||
2008-06-11 Marcelo Jimenez <mroberto(at)users.sourceforge.net>
|
2008-06-11 Marcelo Jimenez <mroberto(at)users.sourceforge.net>
|
||||||
* Fixed a buffer overflow due to a bug in the calculation of the
|
* Fixed a buffer overflow due to a bug in the calculation of the
|
||||||
CONTENT-TYPE header line size, the length was beeing calculated with
|
CONTENT-TYPE header line size, the length was beeing calculated with
|
||||||
|
@ -105,14 +105,12 @@ static void ixmlPrintDomTreeRecursive(
|
|||||||
{
|
{
|
||||||
const char *nodeName = NULL;
|
const char *nodeName = NULL;
|
||||||
const char *nodeValue = NULL;
|
const char *nodeValue = NULL;
|
||||||
const char *nodeNameSpaceURI = NULL;
|
|
||||||
IXML_Node *child = NULL,
|
IXML_Node *child = NULL,
|
||||||
*sibling = NULL;
|
*sibling = NULL;
|
||||||
|
|
||||||
if (nodeptr != NULL) {
|
if (nodeptr != NULL) {
|
||||||
nodeName = (const char *)ixmlNode_getNodeName(nodeptr);
|
nodeName = (const char *)ixmlNode_getNodeName(nodeptr);
|
||||||
nodeValue = ixmlNode_getNodeValue(nodeptr);
|
nodeValue = ixmlNode_getNodeValue(nodeptr);
|
||||||
nodeNameSpaceURI = ixmlNode_getNamespaceURI(nodeptr);
|
|
||||||
|
|
||||||
switch (ixmlNode_getNodeType(nodeptr)) {
|
switch (ixmlNode_getNodeType(nodeptr)) {
|
||||||
case eTEXT_NODE:
|
case eTEXT_NODE:
|
||||||
@ -152,11 +150,6 @@ static void ixmlPrintDomTreeRecursive(
|
|||||||
case eELEMENT_NODE:
|
case eELEMENT_NODE:
|
||||||
ixml_membuf_append_str(buf, "<");
|
ixml_membuf_append_str(buf, "<");
|
||||||
ixml_membuf_append_str(buf, nodeName);
|
ixml_membuf_append_str(buf, nodeName);
|
||||||
if (nodeNameSpaceURI != NULL) {
|
|
||||||
ixml_membuf_append_str(buf, " xmlns=\"");
|
|
||||||
ixml_membuf_append_str(buf, nodeNameSpaceURI);
|
|
||||||
ixml_membuf_append_str(buf, "\"");
|
|
||||||
}
|
|
||||||
if (nodeptr->firstAttr != NULL) {
|
if (nodeptr->firstAttr != NULL) {
|
||||||
ixml_membuf_append_str(buf, " ");
|
ixml_membuf_append_str(buf, " ");
|
||||||
ixmlPrintDomTreeRecursive(nodeptr->firstAttr, buf);
|
ixmlPrintDomTreeRecursive(nodeptr->firstAttr, buf);
|
||||||
@ -282,7 +275,6 @@ static void ixmlDomTreetoString(
|
|||||||
{
|
{
|
||||||
const char *nodeName = NULL;
|
const char *nodeName = NULL;
|
||||||
const char *nodeValue = NULL;
|
const char *nodeValue = NULL;
|
||||||
const char *nodeNameSpaceURI = NULL;
|
|
||||||
IXML_Node *child = NULL;
|
IXML_Node *child = NULL;
|
||||||
|
|
||||||
if (nodeptr == NULL || buf == NULL) {
|
if (nodeptr == NULL || buf == NULL) {
|
||||||
@ -291,7 +283,6 @@ static void ixmlDomTreetoString(
|
|||||||
|
|
||||||
nodeName = (const char *)ixmlNode_getNodeName(nodeptr);
|
nodeName = (const char *)ixmlNode_getNodeName(nodeptr);
|
||||||
nodeValue = ixmlNode_getNodeValue(nodeptr);
|
nodeValue = ixmlNode_getNodeValue(nodeptr);
|
||||||
nodeNameSpaceURI = ixmlNode_getNamespaceURI(nodeptr);
|
|
||||||
|
|
||||||
switch (ixmlNode_getNodeType(nodeptr)) {
|
switch (ixmlNode_getNodeType(nodeptr)) {
|
||||||
case eTEXT_NODE:
|
case eTEXT_NODE:
|
||||||
@ -311,11 +302,6 @@ static void ixmlDomTreetoString(
|
|||||||
case eELEMENT_NODE:
|
case eELEMENT_NODE:
|
||||||
ixml_membuf_append_str(buf, "<");
|
ixml_membuf_append_str(buf, "<");
|
||||||
ixml_membuf_append_str(buf, nodeName);
|
ixml_membuf_append_str(buf, nodeName);
|
||||||
if (nodeNameSpaceURI != NULL) {
|
|
||||||
ixml_membuf_append_str(buf, " xmlns=\"");
|
|
||||||
ixml_membuf_append_str(buf, nodeNameSpaceURI);
|
|
||||||
ixml_membuf_append_str(buf, "\"");
|
|
||||||
}
|
|
||||||
if (nodeptr->firstAttr != NULL) {
|
if (nodeptr->firstAttr != NULL) {
|
||||||
ixml_membuf_append_str(buf, " ");
|
ixml_membuf_append_str(buf, " ");
|
||||||
ixmlPrintDomTreeRecursive(nodeptr->firstAttr, buf);
|
ixmlPrintDomTreeRecursive(nodeptr->firstAttr, buf);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user