fixed href bug

Mon, 12 Oct 2015 17:47:04 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Mon, 12 Oct 2015 17:47:04 +0200
changeset 156
4b3aecafd6be
parent 155
b85248a8aee2
child 157
8dccc3063e28

fixed href bug

libidav/methods.c file | annotate | diff | comparison | revisions
--- a/libidav/methods.c	Mon Oct 12 14:36:54 2015 +0200
+++ b/libidav/methods.c	Mon Oct 12 17:47:04 2015 +0200
@@ -35,6 +35,8 @@
 #include "crypto.h"
 #include "session.h"
 
+#include <ucx/utils.h>
+
 #define xstreq(a,b) xmlStrEqual(BAD_CAST a, BAD_CAST b)
 
 /* ----------------------------- PROPFIND ----------------------------- */
@@ -352,7 +354,7 @@
         node = node->next;
     }
     
-    result->href = href;
+    result->href = util_url_path(href);
     result->iscollection = iscollection;
     result->properties = properties;
     result->crypto_name = crypto_name;

mercurial