mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-03-13 03:20:24 +00:00
maybe fix again
This commit is contained in:
parent
41bb30e64a
commit
b0b5c4163c
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue