Skip to content
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

[5.x] Fix preg_replace error when uploading assets #10687

Merged
merged 6 commits into from
Aug 22, 2024

Conversation

duncanmcclean
Copy link
Member

This pull request attempts to fix an issue with the "safe filename" code which seems to be erroring out (sometimes) when uploading assets.

I haven't been able to replicate the issue myself yet, however, since we're just doing some simple string replacements, I don't think we really need to be touching regex functions for it, so I've refactored it to use Laravel's Stringable class instead.

Closes #10672.

@jasonvarga jasonvarga merged commit 1c0e5e6 into 5.x Aug 22, 2024
17 checks passed
@jasonvarga jasonvarga deleted the fix/preg-replace-error-when-uploading-assets branch August 22, 2024 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error when uploading an image asset
2 participants