summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2024-02-29 11:36:37 +0100
committerGitHub <noreply@github.com>2024-02-29 11:36:37 +0100
commit42d040cb0424d8f21c38ef368f3d354e0a979e7a (patch)
tree9e5207c17ef0a0a52622d07a17fe4f8be7160519 /apps/dav/lib
parent84c129d19d609b866844e842837d3123e014f68a (diff)
parentcb35794f02a0f725399450e2d720535d5450bb47 (diff)
downloadnextcloud-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.php2
-rw-r--r--apps/dav/lib/Connector/Sabre/Auth.php2
-rw-r--r--apps/dav/lib/Connector/Sabre/BearerAuth.php2
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) {