public static void Filters() { var a = FilterVar.ValidateIp(Script.Get["ipAddress"]); var b = FilterVar.ValidateIp(Script.Get["ipAddress"], IpFlags.IpV4 | IpFlags.IpV6); var defaultValue = new IpOptions() { Default = "1.2.3.4" }; //defaultValue.Default = "255.255.255.255"; var c1 = FilterVar.ValidateIp(Script.Get["ipAddress"], IpFlags.IpV4 | IpFlags.IpV6, defaultValue); var c = FilterVar.ValidateIp(Script.Get["ipAddress"], IpFlags.IpV4 | IpFlags.IpV6, new IpOptions { Default = "1.2.3.4" }); var d = FilterVar.ValidateBoolean(Script.Post["aaa"]); var e = FilterVar.ValidateBoolean(Script.Post["aaa"], false); var clientIp = FilterInputServer.ValidateIp( ServerVariables.HttpClientIp); var other = FilterInput.ValidateIp(FilterInput.Type.Get, "Somename",IpFlags.IpV4); }
public static string ValidateIp(Type type, string variable_name, IpFlags flags = 0, IpOptions options = null) { throw new NotImplementedException(); }
public static string ValidateIp(ServerVariables variable, IpFlags flags = 0, IpOptions options = null) { throw new NotImplementedException(); }
public static string ValidateIp(object value, IpFlags flags = 0, IpOptions options = null) { throw new NotImplementedException(); }