httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@attglobal.net>
Subject Re: [PATCH] fix namespace handling in mod_dav_fs
Date Thu, 24 Apr 2003 10:46:52 GMT
Joe Orton wrote:
> Namespace mappings are being dropped in mod_dav_fs; if any property
> values are set which define namespaces these come out mangled in the
> PROPFIND response.

+1

> -    pmap = apr_palloc(db->pool, namespaces->nelts * sizeof(*pmap));
> +    m->ns_map = pmap = apr_palloc(db->pool, namespaces->nelts * sizeof(*pmap));
>      for (i = namespaces->nelts, puri = (const char **)namespaces->elts;
>           i-- > 0;
>           ++puri, ++pmap) {

the ++pmap here means we lose the start of the array, so m->ns_map must 
be set before entering that loop, as in the patch


Mime
View raw message