ASF Bugzilla – Attachment 19799 Details for
Bug 41908
mod_dav corrupts XML attribute namespaces
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
fix for apr-util attribute namespace handling
apu_xml.diff (text/plain), 868 bytes, created by
Joe Orton
on 2007-03-26 13:06:11 UTC
(
hide
)
Description:
fix for apr-util attribute namespace handling
Filename:
MIME Type:
Creator:
Joe Orton
Created:
2007-03-26 13:06:11 UTC
Size:
868 bytes
patch
obsolete
>--- xml/apr_xml.c (revision 509385) >+++ xml/apr_xml.c (working copy) >@@ -666,7 +666,8 @@ > } > else { > /* compute size of: ' ns%d:%s="%s"' */ >- size += 3 + APR_XML_NS_LEN(attr->ns) + 1 + strlen(attr->name) + 2 + strlen(attr->value) + 1; >+ int ns = ns_map ? ns_map[attr->ns] : attr->ns; >+ size += 3 + APR_XML_NS_LEN(ns) + 1 + strlen(attr->name) + 2 + strlen(attr->value) + 1; > } > } > >@@ -736,8 +737,11 @@ > for (attr = elem->attr; attr; attr = attr->next) { > if (attr->ns == APR_XML_NS_NONE) > len = sprintf(s, " %s=\"%s\"", attr->name, attr->value); >- else >- len = sprintf(s, " ns%d:%s=\"%s\"", attr->ns, attr->name, attr->value); >+ else >+ { >+ ns = ns_map ? ns_map[attr->ns] : attr->ns; >+ len = sprintf(s, " ns%d:%s=\"%s\"", ns, attr->name, attr->value); >+ } > s += len; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 41908
: 19799