Case insensitive tet of path (sr #108566).

This commit is contained in:
wbaumann
2014-05-24 17:40:55 +00:00
parent a2798b241a
commit 8518b7146d
2 changed files with 7 additions and 3 deletions

View File

@ -1691,12 +1691,12 @@ prop_result(void *userdata, const ne_uri *uri, const ne_prop_result_set *set)
}
}
if (strstr(result->path, ctx->path) != result->path) {
if (strcasestr(result->path, ctx->path) != result->path) {
dav_delete_props(result);
return;
}
if (strcmp(result->path, ctx->path) == 0) {
if (strcasecmp(result->path, ctx->path) == 0) {
result->name = xstrdup("");
} else {
if (strlen(result->path) < (strlen(ctx->path) + result->is_dir + 1)) {