dav/main.c

changeset 609
dc3d70848c7c
parent 587
3c917df041b8
child 611
a7c48e0dca88
--- a/dav/main.c	Fri Jul 12 16:59:08 2019 +0200
+++ b/dav/main.c	Sun Jul 28 13:07:53 2019 +0200
@@ -381,9 +381,8 @@
             repo->url = strdup(url);
             *path = strdup("/");
         } else if (strchr(url, '/')) {
-            repo->url = util_parent_path(url);
-            // TODO: check/fix
-            *path = strdup(util_resource_name(url)-1);
+            repo->url = util_url_base(url);
+            *path = util_url_path(url);
         } else {
             repo->url = strdup(url);
             *path = strdup("/");

mercurial