From b0b5c4163c4317283cbcd4647318907ec823f62f Mon Sep 17 00:00:00 2001 From: wowmom98 Date: Tue, 21 Mar 2017 22:04:45 -0400 Subject: maybe fix again --- Project-Unite/Controllers/ForumController.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Project-Unite/Controllers/ForumController.cs') diff --git a/Project-Unite/Controllers/ForumController.cs b/Project-Unite/Controllers/ForumController.cs index c416cbd..9e3275a 100644 --- a/Project-Unite/Controllers/ForumController.cs +++ b/Project-Unite/Controllers/ForumController.cs @@ -256,7 +256,10 @@ namespace Project_Unite.Controllers string subjectId = model.Subject; if (String.IsNullOrWhiteSpace(model.Subject) == true) + { ViewBag.Error = "hey no null subjects"; + return new HttpStatusCodeResult(404); + } char[] badChars = subjectId.Where(x => !AllowedChars.Contains(x)).ToArray(); -- cgit v1.2.3