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

[9.x] Fix preg_split error when there is a slash in the attribute #46549

Merged
merged 1 commit into from
Mar 22, 2023

Conversation

NeonGC
Copy link
Contributor

@NeonGC NeonGC commented Mar 22, 2023

I needed to validate data with a slash, but I got an error, which I investigated and determined that the slash itself was the cause.

The reason is that the current code does not escape the normal slash, but only escapes the backslash, which makes the regular expression invalid and throws an error.

Please, merge it also to [10.x] branch.

@taylorotwell taylorotwell merged commit 4ede6e3 into laravel:9.x Mar 22, 2023
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.

2 participants