File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,10 @@ public function match($pattern, $input)
109
109
}
110
110
111
111
foreach ($ input as $ key => $ value ) {
112
+ if (empty ($ value )) {
113
+ continue ;
114
+ }
115
+
112
116
if (is_array ($ value )) {
113
117
if (!$ result = $ this ->match ($ pattern , $ value )) {
114
118
continue ;
Original file line number Diff line number Diff line change @@ -19,6 +19,10 @@ public function match($pattern, $input)
19
19
}
20
20
21
21
foreach ($ input as $ key => $ value ) {
22
+ if (empty ($ value )) {
23
+ continue ;
24
+ }
25
+
22
26
if (is_array ($ value )) {
23
27
if (!$ result = $ this ->match ($ pattern , $ value )) {
24
28
continue ;
Original file line number Diff line number Diff line change @@ -23,6 +23,10 @@ public function match($pattern, $input)
23
23
}
24
24
25
25
foreach ($ input as $ key => $ value ) {
26
+ if (empty ($ value )) {
27
+ continue ;
28
+ }
29
+
26
30
if (is_array ($ value )) {
27
31
if (!$ result = $ this ->match ($ pattern , $ value )) {
28
32
continue ;
@@ -48,7 +52,7 @@ public function match($pattern, $input)
48
52
49
53
return $ result ;
50
54
}
51
-
55
+
52
56
protected function applyExceptions ($ string )
53
57
{
54
58
$ exceptions = config ('firewall.middleware. ' . $ this ->middleware . '.exceptions ' );
@@ -62,15 +66,15 @@ protected function applyExceptions($string)
62
66
63
67
return str_replace ($ exceptions , '' , $ string );
64
68
}
65
-
69
+
66
70
protected function checkContent ($ value )
67
71
{
68
72
$ contents = @file_get_contents ($ value );
69
73
70
74
if (!empty ($ contents )) {
71
75
return (strstr ($ contents , '<?php ' ) !== false );
72
76
}
73
-
77
+
74
78
return false ;
75
79
}
76
80
}
You can’t perform that action at this time.
0 commit comments