diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2024-02-23 19:42:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-23 19:42:41 +0100 |
commit | db9fd9439e927535a16c59cf3aa235e9d00c00a8 (patch) | |
tree | eea56747b41f7333473eff74d70c8af47c1a7886 /apps/dav | |
parent | 152b84180171102732cf60063f2f0afc37630c4f (diff) | |
parent | 91127edcc8b61ce3b8db45c442cc971712e962b8 (diff) | |
download | nextcloud-server-db9fd9439e927535a16c59cf3aa235e9d00c00a8.tar.gz nextcloud-server-db9fd9439e927535a16c59cf3aa235e9d00c00a8.zip |
Merge pull request #42459 from nextcloud/fix/dav/fallback-realm
Diffstat (limited to 'apps/dav')
-rw-r--r-- | apps/dav/lib/Connector/LegacyPublicAuth.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/LegacyPublicAuth.php b/apps/dav/lib/Connector/LegacyPublicAuth.php index c2cc81103bd..82a474d4bed 100644 --- a/apps/dav/lib/Connector/LegacyPublicAuth.php +++ b/apps/dav/lib/Connector/LegacyPublicAuth.php @@ -63,7 +63,7 @@ class LegacyPublicAuth 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) { |