Skip to content

Commit 4ede6e3

Browse files
authored
[9.x] Fix preg_split error when there is a slash in the attribute (#46549)
1 parent 8dee8c0 commit 4ede6e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Validation/ValidationData.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ protected static function extractValuesForWildcards($masterData, $data, $attribu
5454
{
5555
$keys = [];
5656

57-
$pattern = str_replace('\*', '[^\.]+', preg_quote($attribute));
57+
$pattern = str_replace('\*', '[^\.]+', preg_quote($attribute, '/'));
5858

5959
foreach ($data as $key => $value) {
6060
if ((bool) preg_match('/^'.$pattern.'/', $key, $matches)) {

0 commit comments

Comments
 (0)