mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-02-02 13:07:34 +00:00
maybe fixed null subjects
This commit is contained in:
parent
61879d5a67
commit
41bb30e64a
1 changed files with 4 additions and 0 deletions
|
@ -254,6 +254,10 @@ namespace Project_Unite.Controllers
|
||||||
return new HttpStatusCodeResult(404);
|
return new HttpStatusCodeResult(404);
|
||||||
|
|
||||||
string subjectId = model.Subject;
|
string subjectId = model.Subject;
|
||||||
|
|
||||||
|
if (String.IsNullOrWhiteSpace(model.Subject) == true)
|
||||||
|
ViewBag.Error = "hey no null subjects";
|
||||||
|
|
||||||
char[] badChars = subjectId.Where(x => !AllowedChars.Contains(x)).ToArray();
|
char[] badChars = subjectId.Where(x => !AllowedChars.Contains(x)).ToArray();
|
||||||
|
|
||||||
foreach(var c in badChars)
|
foreach(var c in badChars)
|
||||||
|
|
Loading…
Add table
Reference in a new issue