/// <summary>
/// 判断是否是Base64字符串
/// </summary>
/// <returns></returns>
public static bool IsBase64String(string str)
{
if (str != null)
return _base64regex.IsMatch(str);
return true;
}
/// <summary>
/// 判断当前字符串是否存在SQL注入
/// </summary>
/// <returns></returns>
public static bool IsSafeSqlString(string s)
{
if (s != null && _sqlkeywordregex.IsMatch(s))
return false;
return true;
}
/// <su