diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2024-02-29 11:36:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-29 11:36:37 +0100 |
commit | 42d040cb0424d8f21c38ef368f3d354e0a979e7a (patch) | |
tree | 9e5207c17ef0a0a52622d07a17fe4f8be7160519 /apps/dav/lib | |
parent | 84c129d19d609b866844e842837d3123e014f68a (diff) | |
parent | cb35794f02a0f725399450e2d720535d5450bb47 (diff) | |
download | nextcloud-server-42d040cb0424d8f21c38ef368f3d354e0a979e7a.tar.gz nextcloud-server-42d040cb0424d8f21c38ef368f3d354e0a979e7a.zip |
Merge pull request #43798 from nextcloud/backport/42459/stable27
Diffstat (limited to 'apps/dav/lib')
-rw-r--r-- | apps/dav/lib/Connector/PublicAuth.php | 2 | ||||
-rw-r--r-- | apps/dav/lib/Connector/Sabre/Auth.php | 2 | ||||
-rw-r--r-- | apps/dav/lib/Connector/Sabre/BearerAuth.php | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/apps/dav/lib/Connector/PublicAuth.php b/apps/dav/lib/Connector/PublicAuth.php index cc51a249e75..fb952a8a995 100644 --- a/apps/dav/lib/Connector/PublicAuth.php +++ b/apps/dav/lib/Connector/PublicAuth.php @@ -61,7 +61,7 @@ class PublicAuth extends AbstractBasic { // setup realm $defaults = new \OCP\Defaults(); - $this->realm = $defaults->getName(); + $this->realm = $defaults->getName() ?: 'Nextcloud'; } /** diff --git a/apps/dav/lib/Connector/Sabre/Auth.php b/apps/dav/lib/Connector/Sabre/Auth.php index 69e3946bb11..d0c309651cd 100644 --- a/apps/dav/lib/Connector/Sabre/Auth.php +++ b/apps/dav/lib/Connector/Sabre/Auth.php @@ -76,7 +76,7 @@ class Auth extends AbstractBasic { // setup realm $defaults = new \OCP\Defaults(); - $this->realm = $defaults->getName(); + $this->realm = $defaults->getName() ?: 'Nextcloud'; } /** diff --git a/apps/dav/lib/Connector/Sabre/BearerAuth.php b/apps/dav/lib/Connector/Sabre/BearerAuth.php index 5a69d07b002..b38600bd944 100644 --- a/apps/dav/lib/Connector/Sabre/BearerAuth.php +++ b/apps/dav/lib/Connector/Sabre/BearerAuth.php @@ -47,7 +47,7 @@ class BearerAuth extends AbstractBearer { // setup realm $defaults = new \OCP\Defaults(); - $this->realm = $defaults->getName(); + $this->realm = $defaults->getName() ?: 'Nextcloud'; } private function setupUserFs($userId) { |