maybe fix again

This commit is contained in:
wowmom98 2017-03-21 22:04:45 -04:00
parent 41bb30e64a
commit b0b5c4163c

View file

@ -256,7 +256,10 @@ namespace Project_Unite.Controllers
string subjectId = model.Subject; string subjectId = model.Subject;
if (String.IsNullOrWhiteSpace(model.Subject) == true) if (String.IsNullOrWhiteSpace(model.Subject) == true)
{
ViewBag.Error = "hey no null subjects"; ViewBag.Error = "hey no null subjects";
return new HttpStatusCodeResult(404);
}
char[] badChars = subjectId.Where(x => !AllowedChars.Contains(x)).ToArray(); char[] badChars = subjectId.Where(x => !AllowedChars.Contains(x)).ToArray();