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

livevorting page leaks personal info of artist, composer and visitor in json response #1

Open
steam0r opened this issue Aug 16, 2021 · 0 comments

Comments

@steam0r
Copy link

steam0r commented Aug 16, 2021

data here needs to be sanitized to not have any personal information in
the response.

$entries = $live_voting->competition->entries()
->where('status', '=', 1)
->where('sort_position', '<=', $live_voting->sort_position)
->orderBy('sort_position', 'DESC')
->get();
return response()->json([
'data' => EntryResource::collection($entries->load('competition'))
->toArrayRecursive(),
'status' => 200,
'message' => 'Livevotes loaded',
]);

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

No branches or pull requests

1 participant