diff options
| author | wowmom98 <[email protected]> | 2017-03-21 22:04:45 -0400 |
|---|---|---|
| committer | wowmom98 <[email protected]> | 2017-03-21 22:04:45 -0400 |
| commit | b0b5c4163c4317283cbcd4647318907ec823f62f (patch) | |
| tree | f60450499c167acb8778e2390182e0a28dccddad | |
| parent | 41bb30e64ab39f92bd5ef6be1b41bcef03529ac9 (diff) | |
| download | project-unite-b0b5c4163c4317283cbcd4647318907ec823f62f.tar.gz project-unite-b0b5c4163c4317283cbcd4647318907ec823f62f.tar.bz2 project-unite-b0b5c4163c4317283cbcd4647318907ec823f62f.zip | |
maybe fix again
| -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(); |
