mirror of
https://github.com/nextcloud/server.git
synced 2026-06-06 07:13:23 -04:00
Merge pull request #46079 from nextcloud/fix/well-known-checks
fix(settings): make trailing slash for caldav/carddav redirects optional
This commit is contained in:
commit
9496ce6c7a
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ class WellKnownUrls implements ISetupCheck {
|
|||
if (!$works && $response->getStatusCode() === 401) {
|
||||
$redirectHops = explode(',', $response->getHeader('X-Guzzle-Redirect-History'));
|
||||
$effectiveUri = end($redirectHops);
|
||||
$works = str_ends_with($effectiveUri, '/remote.php/dav/');
|
||||
$works = str_ends_with(rtrim($effectiveUri, '/'), '/remote.php/dav');
|
||||
}
|
||||
}
|
||||
// Skip the other requests if one works
|
||||
|
|
|
|||
Loading…
Reference in a new issue