Skip to content

Commit 2174c0c

Browse files
committedAug 5, 2024·
func(Round): Convert any arrays into strings, as they're probably malicious.
1 parent 376cca1 commit 2174c0c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎app/Http/Controllers/RoundController.php

+4
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,10 @@ public function search($search = null)
191191
{
192192
$showTestRounds = filter_var(request('showTestRounds', false), FILTER_VALIDATE_BOOLEAN);
193193

194+
if (is_array($search)) {
195+
$search = implode(',', $search);
196+
}
197+
194198
$rounds = Round::where(function ($query) use ($search) {
195199
$query->where('name', 'like', '%' . $search . '%')
196200
->orWhere('round_addr', 'like', '%' . $search . '%');

0 commit comments

Comments
 (0)
Please sign in to comment.