134 char *executable = dav_get_string_property_ns( |
134 char *executable = dav_get_string_property_ns( |
135 res, |
135 res, |
136 "http://apache.org/dav/props/", |
136 "http://apache.org/dav/props/", |
137 "executable"); |
137 "executable"); |
138 cxmutstr flags = cx_asprintf("%s%s%s", |
138 cxmutstr flags = cx_asprintf("%s%s%s", |
139 settings_get_cryptoflag(keyprop ? 1 : 0), |
139 appsettings_get_cryptoflag(keyprop ? 1 : 0), |
140 settings_get_lockflag(lockdiscovery ? 1 : 0), |
140 appsettings_get_lockflag(lockdiscovery ? 1 : 0), |
141 settings_get_execflag(executable ? 1 : 0)); |
141 appsettings_get_execflag(executable ? 1 : 0)); |
142 return flags.ptr; |
142 return flags.ptr; |
143 } |
143 } |
144 case 3: { // type |
144 case 3: { // type |
145 return res->iscollection ? "Collection" : (res->contenttype ? res->contenttype : "Resource"); |
145 return res->iscollection ? "Collection" : (res->contenttype ? res->contenttype : "Resource"); |
146 } |
146 } |