Beispiel #1
0
        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);

        }
Beispiel #2
0
 public static string ValidateIp(Type type, string variable_name, IpFlags flags = 0, IpOptions options = null)
 {
     throw new NotImplementedException();
 }
Beispiel #3
0
 public static string ValidateIp(ServerVariables variable, IpFlags flags = 0, IpOptions options = null)
 {
     throw new NotImplementedException();
 }
Beispiel #4
0
 public static string ValidateIp(Type type, string variable_name, IpFlags flags = 0, IpOptions options = null)
 {
     throw new NotImplementedException();
 }
Beispiel #5
0
 public static string ValidateIp(object value, IpFlags flags = 0, IpOptions options = null)
 {
     throw new NotImplementedException();
 }
Beispiel #6
0
 public static string ValidateIp(ServerVariables variable, IpFlags flags = 0, IpOptions options = null)
 {
     throw new NotImplementedException();
 }
Beispiel #7
0
 public static string ValidateIp(object value, IpFlags flags = 0, IpOptions options = null)
 {
     throw new NotImplementedException();
 }