# HG changeset patch # User Olaf Wintermann # Date 1542148439 -3600 # Node ID 5979ea04175ef8d7ca25fda72d12a43fa1328d9d # Parent 52cbd310b881666293f52d4eb48cc6272bde2db1 fixes dav_session_get_href() generating random names when encrypt-name is disabled diff -r 52cbd310b881 -r 5979ea04175e libidav/session.c --- a/libidav/session.c Tue Nov 13 21:16:27 2018 +0100 +++ b/libidav/session.c Tue Nov 13 23:33:59 2018 +0100 @@ -378,11 +378,12 @@ if(child) { ucx_buffer_puts(href, util_resource_name(child->href)); res = child; - } else { - //printf("random\n"); + } else if(DAV_ENCRYPT_NAME(sn)) { char *random_name = util_random_str(); ucx_buffer_puts(href, random_name); free(random_name); + } else { + ucx_buffer_puts(href, util_resource_name(path)); } }