Case insensitive tet of path (sr #108566).
This commit is contained in:
parent
a2798b241a
commit
8518b7146d
@ -1,9 +1,13 @@
|
||||
ChangeLog for davfs2
|
||||
--------------------
|
||||
|
||||
2014-05-24 Werner Baumann (werner.baumann@onlinehome.de)
|
||||
* webdav.c, prop_result:
|
||||
Case insensitive test of path (sr #108566).
|
||||
|
||||
2014-05-04 Werner Baumann (werner.baumann@onlinehome.de)
|
||||
* cache.c, update_cache_file:
|
||||
Fixing memory leak.
|
||||
Fixing memory leak (sr #108158).
|
||||
|
||||
2014-04-20 Werner Baumann (werner.baumann@onlinehome.de)
|
||||
* defaults.h, mount_davfs.h, mount_davfs.c, cache.c:
|
||||
|
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user