summaryrefslogtreecommitdiffstats
path: root/apps/files/lib
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2021-08-04 15:52:10 +0200
committerJulius Härtl <jus@bitgrid.net>2022-12-21 21:17:16 +0100
commit6abb37317f9a5e0dd4744b0c4a221ee04ffc700f (patch)
tree0678cb82fa36fb639fd5d905b4b7843296a2c3d0 /apps/files/lib
parentc1a99ca58ffdcf37c7f9aaffdb336de45de98231 (diff)
downloadnextcloud-server-6abb37317f9a5e0dd4744b0c4a221ee04ffc700f.tar.gz
nextcloud-server-6abb37317f9a5e0dd4744b0c4a221ee04ffc700f.zip
Do not setup a session when not required on WebDAV requests
If basic auth is used on WebDAV endpoints, we will not setup a session by default but instead set a test cookie. Clients which handle session cookies properly will send back the cookie then on the second request and a session will be initialized which can be resued for authentication. Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/files/lib')
-rw-r--r--apps/files/lib/Controller/ViewController.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files/lib/Controller/ViewController.php b/apps/files/lib/Controller/ViewController.php
index cfbc9afce2b..1da9814d7e8 100644
--- a/apps/files/lib/Controller/ViewController.php
+++ b/apps/files/lib/Controller/ViewController.php
@@ -175,6 +175,7 @@ class ViewController extends Controller {
/**
* @NoCSRFRequired
* @NoAdminRequired
+ * @UseSession
*
* @param string $dir
* @param string $view