src/server/webdav/saxhandler.cpp

changeset 50
4d39adda7a38
parent 48
37a512d7b8f6
child 59
ab25c0a231d0
equal deleted inserted replaced
49:1fd94945796e 50:4d39adda7a38
73 const Attributes& attrs) 73 const Attributes& attrs)
74 { 74 {
75 char *ns = XMLString::transcode(uri); 75 char *ns = XMLString::transcode(uri);
76 char *name = XMLString::transcode(localname); 76 char *name = XMLString::transcode(localname);
77 77
78 if(!strcmp(ns, "DAV:") && !strcmp(name, "prop")) { 78 if(!strcmp(ns, "DAV:") && !strcmp(name, "allprop")) {
79 davrq->allprop = 1;
80 } else if(!strcmp(ns, "DAV:") && !strcmp(name, "prop")) {
79 davPropTag = true; 81 davPropTag = true;
80 } else if(davPropTag && property == NULL) { 82 } else if(davPropTag && property == NULL && !davrq->allprop) {
81 property = (DavProperty*)pool_malloc(pool, sizeof(DavProperty)); 83 property = (DavProperty*)pool_malloc(pool, sizeof(DavProperty));
82 //property = (DavProperty*)malloc(sizeof(DavProperty)); 84 //property = (DavProperty*)malloc(sizeof(DavProperty));
83 /* TODO: pool_malloc makes big mistakes!! */ 85 /* TODO: pool_malloc makes big mistakes!! */
84 // Fixed or not? It works 86 // Fixed or not? It works
85 87

mercurial