aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authorskjnldsv <skjnldsv@protonmail.com>2024-11-12 12:45:16 +0100
committerskjnldsv <skjnldsv@protonmail.com>2024-11-13 09:05:17 +0100
commitbf728f9d5149c389f45713f81f10666972c31f73 (patch)
treee44100e1489e1a29016a55d8516467795f95946d /apps/dav
parent0ac2b2b67891e0df0ebd9575ca5883f254f55b34 (diff)
downloadnextcloud-server-bf728f9d5149c389f45713f81f10666972c31f73.tar.gz
nextcloud-server-bf728f9d5149c389f45713f81f10666972c31f73.zip
fix(dav): file request guest nickname encoding
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/dav')
-rw-r--r--apps/dav/lib/Files/Sharing/FilesDropPlugin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/Files/Sharing/FilesDropPlugin.php b/apps/dav/lib/Files/Sharing/FilesDropPlugin.php
index 69328d42272..9d883be81fc 100644
--- a/apps/dav/lib/Files/Sharing/FilesDropPlugin.php
+++ b/apps/dav/lib/Files/Sharing/FilesDropPlugin.php
@@ -64,7 +64,7 @@ class FilesDropPlugin extends ServerPlugin {
// Extract the attributes for the file request
$isFileRequest = false;
$attributes = $this->share->getAttributes();
- $nickName = $request->getHeader('X-NC-Nickname');
+ $nickName = $request->hasHeader('X-NC-Nickname') ? urldecode($request->getHeader('X-NC-Nickname')) : null;
if ($attributes !== null) {
$isFileRequest = $attributes->getAttribute('fileRequest', 'enabled') === true;
}