Skip to content

Commit 16e6f9c

Browse files
authored
Merge pull request #46093 from nextcloud/backport/46079/stable29
[stable29] fix(settings): make trailing slash for caldav/carddav redirects optional
2 parents 66b0f6d + 79bcb9d commit 16e6f9c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/settings/lib/SetupChecks/WellKnownUrls.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function run(): SetupResult {
8181
if (!$works && $response->getStatusCode() === 401) {
8282
$redirectHops = explode(',', $response->getHeader('X-Guzzle-Redirect-History'));
8383
$effectiveUri = end($redirectHops);
84-
$works = str_ends_with($effectiveUri, '/remote.php/dav/');
84+
$works = str_ends_with(rtrim($effectiveUri, '/'), '/remote.php/dav');
8585
}
8686
}
8787
// Skip the other requests if one works

0 commit comments

Comments
 (0)