Skip to content

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

Merged
taylorotwell merged 1 commit into
laravel:9.xfrom
NeonGC:patch-1
Mar 22, 2023
Merged

[9.x] Fix preg_split error when there is a slash in the attribute#46549
taylorotwell merged 1 commit into
laravel:9.xfrom
NeonGC:patch-1

Conversation

@NeonGC

@NeonGC NeonGC commented Mar 22, 2023

Copy link
Copy Markdown
Contributor

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