summaryrefslogtreecommitdiff
path: root/Project-Unite/Controllers/ForumController.cs
diff options
context:
space:
mode:
authorwowmom98 <[email protected]>2017-03-21 22:04:45 -0400
committerwowmom98 <[email protected]>2017-03-21 22:04:45 -0400
commitb0b5c4163c4317283cbcd4647318907ec823f62f (patch)
treef60450499c167acb8778e2390182e0a28dccddad /Project-Unite/Controllers/ForumController.cs
parent41bb30e64ab39f92bd5ef6be1b41bcef03529ac9 (diff)
downloadproject-unite-b0b5c4163c4317283cbcd4647318907ec823f62f.tar.gz
project-unite-b0b5c4163c4317283cbcd4647318907ec823f62f.tar.bz2
project-unite-b0b5c4163c4317283cbcd4647318907ec823f62f.zip
maybe fix again
Diffstat (limited to 'Project-Unite/Controllers/ForumController.cs')
-rw-r--r--Project-Unite/Controllers/ForumController.cs3
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();