diff options
author | skjnldsv <skjnldsv@protonmail.com> | 2024-11-12 12:45:16 +0100 |
---|---|---|
committer | skjnldsv <skjnldsv@protonmail.com> | 2024-11-13 09:05:17 +0100 |
commit | bf728f9d5149c389f45713f81f10666972c31f73 (patch) | |
tree | e44100e1489e1a29016a55d8516467795f95946d /apps/dav | |
parent | 0ac2b2b67891e0df0ebd9575ca5883f254f55b34 (diff) | |
download | nextcloud-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.php | 2 |
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; } |