Merge branch 'main' into features/route

This commit is contained in:
luke-else 2021-11-15 21:24:30 +00:00
commit 16543d9c64

View File

@ -9,7 +9,7 @@ namespace EFB.Controllers.Form
{
public static bool ValidateEMail(string EMail){
if (EMail.Contains("@") && EMail.Contains(".") && !EMail.Contains(" "))
if (EMail != null && EMail.Contains("@") && EMail.Contains(".") && !EMail.Contains(" "))
{
if (EMail.Count(x => x == '@') == 1)
{