admin: tweaks to validation and rendering

This commit is contained in:
Matthew Penner 2024-04-10 17:39:26 -06:00
parent 319ca683f8
commit f671046947
No known key found for this signature in database
10 changed files with 11 additions and 11 deletions

View file

@ -56,7 +56,7 @@ class NestController extends Controller
public function store(StoreNestFormRequest $request): RedirectResponse
{
$nest = $this->nestCreationService->handle($request->normalize());
$this->alert->success(trans('admin/nests.notices.created', ['name' => $nest->name]))->flash();
$this->alert->success(trans('admin/nests.notices.created', ['name' => htmlspecialchars($nest->name)]))->flash();
return redirect()->route('admin.nests.view', $nest->id);
}