mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-21 16:52:27 +00:00
* Add migration to de-sanitize database strings * Remove SanitizationHelper functions related to XML sanitization * Remove sanitization usage from website * Implement suggested changes
9 lines
No EOL
290 B
C#
9 lines
No EOL
290 B
C#
#nullable enable
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace LBPUnion.ProjectLighthouse.Helpers;
|
|
|
|
public static class SanitizationHelper
|
|
{
|
|
public static bool IsValidEmail(string? email) => !string.IsNullOrWhiteSpace(email) && new EmailAddressAttribute().IsValid(email);
|
|
} |