Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[5.3] Stricter comparison when replacing URL for LocalAdapter (#17097)
I have an edgy case with a directory name that starts with string `public`, like this: - `/storage/app/public/public.../files` So this was triggering the ternary on line `298` and the resulting URL was broken. Here is a real example: - Upload public path for LocalAdapter is `publicala/logo.svg`, full path from project root being `/storage/app/public/publicala/logo.svg`. - Generated URL was `https://laravelapp.dev/storageala/logo.svg` With this litle patch the generated URL is `https://laravelapp.dev/storage/publicala/logo.svg` This would also be useful for directory names ending with string `public`
- Loading branch information