Skip to content

Commit acd66fe

Browse files
authored
Don't trim leading slashes on local filesystem base URLs
1 parent 591e898 commit acd66fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Filesystem/FilesystemAdapter.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ protected function getLocalUrl($path)
351351
// it as the base URL instead of the default path. This allows the developer to
352352
// have full control over the base path for this filesystem's generated URLs.
353353
if ($config->has('url')) {
354-
return trim($config->get('url'), '/').'/'.ltrim($path, '/');
354+
return rtrim($config->get('url'), '/').'/'.ltrim($path, '/');
355355
}
356356

357357
$path = '/storage/'.$path;

0 commit comments

Comments
 (0)