Skip to content

Commit

Permalink
Update lib/private/URLGenerator.php
Browse files Browse the repository at this point in the history
Co-authored-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux and solracsf authored Sep 11, 2024
1 parent c64179a commit d00f9ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/URLGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ public function getAbsoluteURL(string $url): string {
if (\OC::$CLI && !\defined('PHPUNIT_RUN')) {
return rtrim($this->config->getSystemValueString('overwrite.cli.url'), '/') . '/' . ltrim($url, '/');
}
// The Nextcloud web root could be already be prepended.
// The Nextcloud web root could already be prepended.
if (\OC::$WEBROOT !== '' && str_starts_with($url, \OC::$WEBROOT)) {
$url = substr($url, \strlen(\OC::$WEBROOT));
}
Expand Down

0 comments on commit d00f9ee

Please sign in to comment.