From 74cf7e2c913fac5ac0c83d5b13e59001a0996bd5 Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Mon, 2 Aug 2021 22:19:05 -0400 Subject: [PATCH] Try/catch input sanitization --- Pages/Index.cshtml | 4 ++++ Posting.cs | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Pages/Index.cshtml b/Pages/Index.cshtml index a758bb6..3d5e188 100644 --- a/Pages/Index.cshtml +++ b/Pages/Index.cshtml @@ -67,7 +67,11 @@

Agency: @Model.posting.Agency

Union: @Model.posting.BargainingUnit

Contact Name: @Model.posting.ContactName

+ @if (!string.IsNullOrEmpty(Model.posting.BoxNumber)) {

Contact Email: @Model.posting.ContactEmailAddress

+ } else { +

Contact Email: @Model.posting.ContactEmailAddress

+ }