Mercurial > hg > orthanc
diff OrthancFramework/Sources/HttpServer/IWebDavBucket.cpp @ 4234:a38376b80cd1
WebDAV: by-studies and by-patients
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 08 Oct 2020 13:38:44 +0200 |
parents | 688435755466 |
children | 6c3721ff284c |
line wrap: on
line diff
--- a/OrthancFramework/Sources/HttpServer/IWebDavBucket.cpp Wed Oct 07 13:19:53 2020 +0200 +++ b/OrthancFramework/Sources/HttpServer/IWebDavBucket.cpp Thu Oct 08 13:38:44 2020 +0200 @@ -96,7 +96,8 @@ { node.set_name("D:response"); - std::string s = AddTrailingSlash(parentPath) + GetName(); + std::string s; + Toolbox::UriEncode(s, AddTrailingSlash(parentPath) + GetName()); node.append_child("D:href").append_child(pugi::node_pcdata).set_value(s.c_str()); pugi::xml_node propstat = node.append_child("D:propstat"); @@ -180,8 +181,7 @@ //prop.append_child("D:getcontenttype").append_child(pugi::node_pcdata).set_value("httpd/unix-directory"); - std::string s = GetName(); - prop.append_child("D:displayname").append_child(pugi::node_pcdata).set_value(s.c_str()); + prop.append_child("D:displayname").append_child(pugi::node_pcdata).set_value(GetName().c_str()); }