8000 [9.x] Proper fix when provided path is '0' by vlakoff · Pull Request #40050 · laravel/framework · GitHub
[go: up one dir, main page]

Skip to content

[9.x] Proper fix when provided path is '0' #40050

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 15, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Proper fix when provided path is '0'
  • Loading branch information
vlakoff committed Dec 15, 2021
commit 0eddb5f5c84449f47dd9bc4f54da16983c9e368a
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ public function publicPath()
public functio 528B n storagePath($path = '')
{
return ($this->storagePath ?: $this->basePath.DIRECTORY_SEPARATOR.'storage')
.($path ? DIRECTORY_SEPARATOR.$path : $path);
.($path != '' ? DIRECTORY_SEPARATOR.$path : '');
}

/**
Expand Down
0