diff options
Diffstat (limited to 'Project-Unite/Controllers/ForumController.cs')
| -rw-r--r-- | Project-Unite/Controllers/ForumController.cs | 3 |
1 files changed, 3 insertions, 0 deletions
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(); |
