From 8d2470972aa9a5109edb9d91e5ab9a5157bec1b9 Mon Sep 17 00:00:00 2001 From: hsonne Date: Tue, 16 Jul 2024 21:23:49 +0200 Subject: [PATCH] URLencode() only the user name --- R/utils.R | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/R/utils.R b/R/utils.R index 3463be7..1d8d64e 100644 --- a/R/utils.R +++ b/R/utils.R @@ -124,8 +124,7 @@ path_to_file_href <- function( ) { base_url <- webdav_base_url(leading_slash = leading_slash) - href <- file.path(base_url, "files", user, path) - utils::URLencode(href) + file.path(base_url, "files", utils::URLencode(user), path) } # rename_properties ------------------------------------------------------------