diff --git a/src/Illuminate/Filesystem/FilesystemAdapter.php b/src/Illuminate/Filesystem/FilesystemAdapter.php index 50ce21f3671d..157aab459068 100644 --- a/src/Illuminate/Filesystem/FilesystemAdapter.php +++ b/src/Illuminate/Filesystem/FilesystemAdapter.php @@ -846,6 +846,14 @@ public function temporaryUploadUrl($path, $expiration, array $options = []) */ protected function concatPathToUrl($url, $path) { + if (empty($url)) { + return trim($path, '/'); + } + + if (empty($path)) { + return trim($url, '/'); + } + return rtrim($url, '/').'/'.ltrim($path, '/'); }