diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2024-02-29 11:34:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-29 11:34:48 +0100 |
commit | e9e027a9e23a83e455765c96cc3650c6c1d8ecbd (patch) | |
tree | 21f565b9f98d0f9ece3e44330a3ecfc67f749a38 | |
parent | b9edb5538126705a2ed1d88e742f5e20f918569b (diff) | |
parent | 54f47f53a80241a3962f4da7bab583a2217a14c9 (diff) | |
download | nextcloud-server-e9e027a9e23a83e455765c96cc3650c6c1d8ecbd.tar.gz nextcloud-server-e9e027a9e23a83e455765c96cc3650c6c1d8ecbd.zip |
Merge pull request #43796 from nextcloud/backport/42459/stable28
-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 d613a5a188f..65b20ca661a 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 243b92e63f7..c2e343d8656 100644 --- a/apps/dav/lib/Connector/Sabre/Auth.php +++ b/apps/dav/lib/Connector/Sabre/Auth.php @@ -75,7 +75,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 4d9599b97a3..6fd61c44b34 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) { |