Skip to content

Commit

Permalink
Update apps/settings/lib/SetupChecks/CheckServerResponseTrait.php
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel <mail@danielkesselberg.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux and kesselb authored Sep 11, 2024
1 parent f64d762 commit 2b256a7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apps/settings/lib/SetupChecks/CheckServerResponseTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ protected function serverConfigHelp(): string {
* @return list<string> List of possible absolute URLs
*/
protected function getTestUrls(string $url, bool $removeWebroot): array {
if (!str_starts_with($url, '/')) {
$url = '/' . $url;
}
$url = '/' . ltrim($url, '/');

$webroot = rtrim($this->urlGenerator->getWebroot(), '/');
// Similar to `getAbsoluteURL` of URLGenerator:
Expand Down

0 comments on commit 2b256a7

Please sign in to comment.