[mod_webdav] fix misbehavior on blank nodes in PROPPATCH

github: #97

x-ref:
  https://github.com/lighttpd/lighttpd1.4/pull/97
personal/stbuehler/ci-build
yangfl 4 years ago committed by Glenn Strauss
parent 6962fc2a5a
commit 4af0f97f14

@ -4703,7 +4703,10 @@ mod_webdav_proppatch (connection * const con, const plugin_config * const pconf)
if (0 != webdav_xmlstrcmp_fixed(props->name, "prop"))
continue;
const xmlNode * const prop = props->children;
const xmlNode *prop = props->children;
/* libxml2 will keep those blank (whitespace only) nodes */
while (NULL != prop && xmlIsBlankNode(prop))
prop = prop->next;
if (NULL == prop)
continue;
if (prop->ns && '\0' == *(char *)prop->ns->href

Loading…
Cancel
Save