Skip to content

Commit

Permalink
Merge pull request #46079 from nextcloud/fix/well-known-checks
Browse files Browse the repository at this point in the history
fix(settings): make trailing slash for caldav/carddav redirects optional
  • Loading branch information
come-nc authored Jun 25, 2024
2 parents 369c552 + ea994fe commit 9496ce6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/settings/lib/SetupChecks/WellKnownUrls.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function run(): SetupResult {
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
Expand Down

0 comments on commit 9496ce6

Please sign in to comment.